Harden against invalid alignment#2411
Conversation
41931ae to
a517995
Compare
|
cc @keithw because oss-fuzz |
a517995 to
1a566e6
Compare
72582c2 to
0386a27
Compare
|
Thanks, and thanks for the ping. Do you think it would be better to consolidate the three |
|
E.g. keithw/wabt@b09d4e0 |
|
we figured having the check in the same function is what caused the issue in the first place. further, different contexts may give different meanings to the alignment flags, so we would be against calling it "has memidx" in that case. would you have another way to enforce that CheckAlignment is called? |
|
how about this? |
|
Let's just go back to the way you had it and call it done. |
|
oh ;-; okay |
46434e5 to
0386a27
Compare
Chasing https://crbug.com/oss-fuzz/51561
Let's see if this breaks anything...
The issue only triggers if both conditions are true: