diff options
| author | Kuan-Wei Chiu <visitorckw@gmail.com> | 2024-06-14 09:44:36 +0800 |
|---|---|---|
| committer | Kuan-Wei Chiu <visitorckw@gmail.com> | 2024-06-14 09:53:57 +0800 |
| commit | b5e0fff6b9ee1260fc3753af0e441606cfe853ff (patch) | |
| tree | f011aa55e32a02090284c7f7a4943e04ce06f64b /custom_mutators/rust/custom_mutator | |
| parent | e7da8b9d6bf20b1cac960b1eccf3beac3fbf7901 (diff) | |
| download | afl++-b5e0fff6b9ee1260fc3753af0e441606cfe853ff.tar.gz | |
Fix signed integer overflow in radamsa
When UBSan was enabled and 'make test' was executed, the following
runtime error was observed:
libradamsa.c:26055:29: runtime error: left shift of 16777215 by 8 places cannot be represented in type 'int'
This issue was caused by a left shift operation on a signed integer.
The fix involved changing the integer literal to an unsigned integer by
adding a 'U' suffix, ensuring the left shift operation produces the
correct value without overflow.
Fixes: 8178f4df ("remove radamsa, add radamsa custom mutator")
Diffstat (limited to 'custom_mutators/rust/custom_mutator')
0 files changed, 0 insertions, 0 deletions
