https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374
Bug ID: 114374
Summary: [12/13 Regression] snprintf Wformat-truncation
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374
--- Comment #2 from Torsten Mandel ---
No, it only happens on overflow, although diagnostic behavior would still be
inconsistent regarding the ++loop and the loop++ case.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374
--- Comment #3 from Torsten Mandel ---
Sorry, actually it also triggers for values below LONG_MAX on gcc-12 & gcc-13
so it also works without UB which should not be the case.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374
--- Comment #4 from Torsten Mandel ---
E.g.:
#include "stdio.h"
#include
int main() {
char buf[11];
int loop(1);
do {
snprintf(buf,sizeof(buf),"%d",loop++);
} while(loop<10);
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415
Bug ID: 116415
Summary: [13 Regression][PPC64LE] atomics wrongly use vector
instructions in DWCAS.
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: n