Files
yara/tests/data
Scott Knight 793fc55358 Create test case for uninitialized number_of_segments
The current Mach-O parsing code attempts to call macho_rva_to_offset
while parsing load commands and before it has set number_of_segments.
Since macho_rva_to_offset uses number_of_segments this can result
in it using a number_of_segments that is uninitialized and is just a random
large number. In turn yara runs a really long time.

This adds a test binary based on this post

https://codegolf.stackexchange.com/questions/102471/smallest-possible-runnable-mach-o-executable/154685#154685

It has two load commands. The first is a LC_UNIXTHREAD command and
the second is a LC_SEGMENT command. It's a valid 386 Mach-O binary.
It reproduces this error.
2020-05-11 09:02:06 +02:00
..
2017-11-21 19:33:57 +01:00
2018-06-01 12:33:11 +02:00
2017-11-21 19:33:57 +01:00
2017-05-25 11:35:10 +02:00
2016-03-31 01:36:26 +02:00
2019-11-15 10:56:07 +01:00
2018-02-18 19:46:08 +01:00
2018-02-18 19:46:08 +01:00