Skip to content

./regex in branch hax/ebeip90 issue #35

@ghost

Description

memcpy_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:267
267     ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: No such file or directory.
gdb$ bt
#0  __memcpy_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:267
#1  0x0000000000401677 in perform_pcre_filter (fd=0x1, ctx=0x604010, buf=0x7fffffffdd68, used=0x7fffffffdd78, allocated=0x7fffffffdd70) at regex.c:154
#2  0x0000000000401ecb in proxy_pump () at proxy.c:231
#3  0x0000000000401960 in main (argc=0x4, argv=0x7fffffffdeb8) at main.c:26
gdb$ quit


 // XXX bytes-avail > sizeof(buffer)?  might be the bug...
    if(bytes > available) {
        size_t shift_idx = bytes - available;
        size_t shift_size = sizeof(data->buffer) - shift_idx;

        memcpy(data->buffer, &data->buffer[shift_idx], shift_size);
        data->used -= shift_idx;
    }

    // Copy in the new data
    memcpy(&data->buffer[data->used], *buf, bytes);
    data->used += bytes;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions