Summary: | MUJS library heap based buffer overflow in 'regemit' function | ||
---|---|---|---|
Product: | MuJS | Reporter: | op7ic <op7ica> |
Component: | general | Assignee: | Tor Andersson <tor.andersson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Customer: | Word Size: | --- | |
Attachments: | valgrind report |
Description
op7ic
2016-12-20 06:18:28 UTC
Created attachment 13255 [details]
valgrind report
Fixed in commit fa3d30fd18c348bb4b1f3858fb860f4fcd4b2045 Author: Tor Andersson <tor.andersson@gmail.com> Date: Thu Jan 12 15:13:14 2017 +0100 Fix 697448: Limit the maximum program size to something reasonable. A regular expression with lots of nested repetition can lead to integer overflow when calculating the size of the program. Check max program size when counting the number of instructions required for a loop, so we can bail before integer overflow can happen. |