When parsing a format string with less argument than specified, one should check
argument access because there may be no such argument.
This fixes #57517
Differential D133197
[clang] Fix crash when parsing scanf format string with missing arguments serge-sans-paille on Sep 2 2022, 4:41 AM. Authored by
Details When parsing a format string with less argument than specified, one should check This fixes #57517
Diff Detail
Event TimelineComment Actions Thanks @serge-sans-paille! Basically LGTM. Maybe we need to backport this patch though? @aaron.ballman Comment Actions LGTM! Clang 15 is closed for backports that aren't critical at this point AFAIK (we're slated to release Clang 15 in a few days). I believe this isn't fixing a recent regression, so the change should also have a release note. |