Hi! On Thu, Aug 19, 2021 at 04:40:42PM -0500, Bill Schmidt wrote: > I totally biffed the previous version of this patch, as it was built > against an experimental tree instead of trunk. Trying again... > > Although safe_inc_pos avoids buffer overruns in rs6000-gen-builtins.c, > there are some other routines where we fail to detect the possibility. > Clean those up! (Also, safe_inc_pos is not quite right itself.)
> PR target/101830 > * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): > Diagnose buffer overrun. Please don't break changelog lines unnecessary. > (safe_inc_pos): Fix overrun detection. > (match_identifier): Diagnose buffer overrun. > (match_integer): Likewise. > (match_to_right_bracket): Likewise. Okay for trunk. Thanks! Segher