Skip to content

No thread number upper bound leads to crash #31

@hongxuchen

Description

@hongxuchen

Since several occurrences of memory allocation malloc_safe are dependent on thread number (-T), but there is no upper bound limit for thread number, this may lead to segfault. An example is like:

./pxz -k -T 2000 -q -f /tmp/test.in
[1]    72116 segmentation fault  ./pxz -k -T 2000 -q -f /tmp/test.in

Where /tmp/test.in is an empty file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions