Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: rillig
Date: Fri Apr 8 21:48:19 UTC 2022
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_048.c msg_048.exp
src/usr.bin/xlint: Makefile.inc
src/usr.bin/xlint/lint1: decl.c
Log Message:
lint: fix undefined behavior on enum overflow (since 1995)
GCC had optimized the check away, due to the obvious integer overflow 'x
- 1 == INT_MAX'. To prevent further bugs like this, compile with
-ftrapv.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_048.c \
src/tests/usr.bin/xlint/lint1/msg_048.exp
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/Makefile.inc
cvs rdiff -u -r1.268 -r1.269 src/usr.bin/xlint/lint1/decl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index