PLSysSec / sys

Sys: A Static/Symbolic Tool for Finding Good Bugs in Good (Browser) Code
https://cseweb.ucsd.edu/~dstefan/pubs/brown:2020:sys.pdf
GNU General Public License v2.0
215 stars 41 forks source link

Write too large with Firefox #28

Open suyashmahar opened 3 years ago

suyashmahar commented 3 years ago

Some bitcode files for firefox generate Write too large error.

How to reproduce:

stack exec -- sys -c uninit -e prod -d firefox_ll_files/vp9_segmentation.ll-O2_p

Bitcode is available here.

And the error is raised here: https://github.com/PLSysSec/sys/blob/821c4d7cf924e68838c128cbe824be46c9955416/src/Symex/Symex/Memory.hs#L181

Which seems like some kind of arbitrary limit that can be changed? Changing it to 20k fixed the error. I'm not sure if that would break something in Sys.

(Using clang-9 and bleeding edge firefox)

-Suyash

CC @epyeh