When CurrentLoadedOffset is less than TotalSize, current code will
trigger unsigned overflow and will not return an "allocation failed"
indicator.
Google ref: b/248613299
Differential D135192
Fix incorrect check for running out of source locations. ppluzhnikov on Oct 4 2022, 1:13 PM. Authored by
Details When CurrentLoadedOffset is less than TotalSize, current code will Google ref: b/248613299
Diff Detail
Event TimelineComment Actions Sounds good (guess this is pretty impractical to have a regression test/would require very large files to test?) Comment Actions Yea, overflowing this requires a very convoluted setup; I don't think it's practical to have a unit test for this. Could you commit this change? (I don't have commit rights in LLVM). Thanks, |