Commit dc4d6ee
authored
Fix null-deref in parse_cond_value (pytorch#12294)
Summary:
- Fuzzer mutates .pte files and expects the loader/executor to handle
corrupted input robustly. The crash was due to ***cond_val***. returning
nullptr (invalid/corrupted input).
- Fix the crash by checking for nullptr and returning an error code.
- Fuzzer test case also required to be modified to handle the new
returned error code. (The intent of a fuzzing test is to ensure the code
does not crash or misbehave on malformed input, not that it always
succeeds.)
Differential Revision: D778278301 parent ae15253 commit dc4d6ee
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
| |||
0 commit comments