Now
MAIN commitmail json YAML
sys/ktrace.h: fix off-by-one error in snprintb for ktrace flags
MAIN commitmail json YAML
error: disable lint's strict bool mode when building with Clang
The Clang preprocessor does not mark sections from system headers.
Lint's strict bool mode relies on these markers to allow the functions
from <ctype.h> to be used as 'bool', even though their declared return
type is 'int'. Without these markers, lint complains that the "right
operand of '&&' must be bool, not 'int'". Until this is fixed in lint,
disable strict bool mode.
The Clang preprocessor does not mark sections from system headers.
Lint's strict bool mode relies on these markers to allow the functions
from <ctype.h> to be used as 'bool', even though their declared return
type is 'int'. Without these markers, lint complains that the "right
operand of '&&' must be bool, not 'int'". Until this is fixed in lint,
disable strict bool mode.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/c23.c@1.12
/
diff
/
nxr@1.12
src/usr.bin/xlint/lint1/cgram.y@1.499 / diff / nxr@1.499
src/usr.bin/xlint/lint1/cgram.y@1.499 / diff / nxr@1.499
lint: in C23 mode, allow storage classes in compound literals
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/d_c99_init.c@1.49
/
diff
/
nxr@1.49
src/tests/usr.bin/xlint/lint1/msg_174.c@1.7 / diff / nxr@1.7
src/usr.bin/xlint/lint1/err.c@1.242 / diff / nxr@1.242
src/usr.bin/xlint/lint1/init.c@1.269 / diff / nxr@1.269
src/tests/usr.bin/xlint/lint1/msg_174.c@1.7 / diff / nxr@1.7
src/usr.bin/xlint/lint1/err.c@1.242 / diff / nxr@1.242
src/usr.bin/xlint/lint1/init.c@1.269 / diff / nxr@1.269
lint: add details to message about too many initializers
MAIN commitmail json YAML
lint: sync grammar rule names with C11 and C23
MAIN commitmail json YAML
lint: sort grammar rules according to the order they appear in C23
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/c23.c@1.11
/
diff
/
nxr@1.11
src/usr.bin/xlint/lint1/cgram.y@1.496 / diff / nxr@1.496
src/usr.bin/xlint/lint1/debug.c@1.78 / diff / nxr@1.78
src/usr.bin/xlint/lint1/externs1.h@1.225 / diff / nxr@1.225
src/usr.bin/xlint/lint1/lex.c@1.225 / diff / nxr@1.225
src/usr.bin/xlint/lint1/lint1.h@1.226 / diff / nxr@1.226
src/usr.bin/xlint/lint1/cgram.y@1.496 / diff / nxr@1.496
src/usr.bin/xlint/lint1/debug.c@1.78 / diff / nxr@1.78
src/usr.bin/xlint/lint1/externs1.h@1.225 / diff / nxr@1.225
src/usr.bin/xlint/lint1/lex.c@1.225 / diff / nxr@1.225
src/usr.bin/xlint/lint1/lint1.h@1.226 / diff / nxr@1.226
lint: in C23 mode, support the nullptr constant
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/c23.c@1.10
/
diff
/
nxr@1.10
src/usr.bin/xlint/lint1/lex.c@1.224 / diff / nxr@1.224
src/usr.bin/xlint/lint1/lint1.h@1.225 / diff / nxr@1.225
src/usr.bin/xlint/xlint/strict-bool-stdbool.h@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/lex.c@1.224 / diff / nxr@1.224
src/usr.bin/xlint/lint1/lint1.h@1.225 / diff / nxr@1.225
src/usr.bin/xlint/xlint/strict-bool-stdbool.h@1.2 / diff / nxr@1.2
lint: in C23 mode, support the keywords 'bool', 'false' and 'true'
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/c11.c@1.7
/
diff
/
nxr@1.7
src/tests/usr.bin/xlint/lint1/c23.c@1.9 / diff / nxr@1.9
src/tests/usr.bin/xlint/lint1/c23.c@1.9 / diff / nxr@1.9
tests/lint: show that in C23 mode, bool is not yet defined
The tests in C11 and C23 mode look the same right now but will change
soon.
The warnings in the C11 test disappeared because after the first error,
warnings about unused variables are suppressed by check_variable_usage,
as they are often wrong.
The tests in C11 and C23 mode look the same right now but will change
soon.
The warnings in the C11 test disappeared because after the first error,
warnings about unused variables are suppressed by check_variable_usage,
as they are often wrong.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_004.c@1.8
/
diff
/
nxr@1.8
src/tests/usr.bin/xlint/lint1/msg_005.c@1.6 / diff / nxr@1.6
src/usr.bin/xlint/lint1/decl.c@1.402 / diff / nxr@1.402
src/tests/usr.bin/xlint/lint1/msg_005.c@1.6 / diff / nxr@1.6
src/usr.bin/xlint/lint1/decl.c@1.402 / diff / nxr@1.402
lint: increase debug logging for declarations
All changes to the global variable 'dcs' are tracked now, to help
identify the cause of the failing tests in expr_sizeof and
gcc_attribute_aligned.
While here, test more invalid type combinations in typedefs.
All changes to the global variable 'dcs' are tracked now, to help
identify the cause of the failing tests in expr_sizeof and
gcc_attribute_aligned.
While here, test more invalid type combinations in typedefs.
MAIN commitmail json YAML
mktemp.3: mkdtemp is no longer nonstandard
Reported by Aleksey Cheusov on tech-userlevel.
Reported by Aleksey Cheusov on tech-userlevel.
MAIN commitmail json YAML
tests/lint: fix supposedly platform-independent type definitions
No idea where I got the previous type definitions from. The typedef
names looked just too convincing to actually check the underlying types.
No idea where I got the previous type definitions from. The typedef
names looked just too convincing to actually check the underlying types.
MAIN commitmail json YAML
tests/lint: skip test for sizeof struct on 32-bit platforms
Even though the test only uses fixed-size types, lint's computed size of
the resulting struct differs between i386 (80) and x86_64 (112). Both
are wrong, probably due to the unrelated struct declaration above, as
already mentioned in the comments.
Even though the test only uses fixed-size types, lint's computed size of
the resulting struct differs between i386 (80) and x86_64 (112). Both
are wrong, probably due to the unrelated struct declaration above, as
already mentioned in the comments.
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/cgram.y@1.495
/
diff
/
nxr@1.495
src/usr.bin/xlint/lint1/debug.c@1.77 / diff / nxr@1.77
src/usr.bin/xlint/lint1/decl.c@1.401 / diff / nxr@1.401
src/usr.bin/xlint/lint1/externs1.h@1.224 / diff / nxr@1.224
src/usr.bin/xlint/lint1/lint1.h@1.224 / diff / nxr@1.224
src/usr.bin/xlint/lint1/tree.c@1.640 / diff / nxr@1.640
src/usr.bin/xlint/lint1/debug.c@1.77 / diff / nxr@1.77
src/usr.bin/xlint/lint1/decl.c@1.401 / diff / nxr@1.401
src/usr.bin/xlint/lint1/externs1.h@1.224 / diff / nxr@1.224
src/usr.bin/xlint/lint1/lint1.h@1.224 / diff / nxr@1.224
src/usr.bin/xlint/lint1/tree.c@1.640 / diff / nxr@1.640
lint: measure the alignment in bytes, not bits
While measuring the alignment in bits makes sense when building a struct
type with bit-fields, in all other places it is more confusing than
helpful.
The only visible change is that in debug mode, the format of type sizes
and alignment changed. Since the size of all complete types is a
multiple of a byte (as defined in the C standard), sizes and alignments
are reported in bytes as well. Only while a struct is being built, the
type size may include an additional '+x' for the bits of a bit-field.
While measuring the alignment in bits makes sense when building a struct
type with bit-fields, in all other places it is more confusing than
helpful.
The only visible change is that in debug mode, the format of type sizes
and alignment changed. Since the size of all complete types is a
multiple of a byte (as defined in the C standard), sizes and alignments
are reported in bytes as well. Only while a struct is being built, the
type size may include an additional '+x' for the bits of a bit-field.
MAIN commitmail json YAML
tests/lint: demonstrate wrong struct size calculation
MAIN commitmail json YAML
parsedate.3: resolve contradictory values for 'next'
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/decl.c@1.30
/
diff
/
nxr@1.30
src/usr.bin/xlint/lint1/tree.c@1.639 / diff / nxr@1.639
src/usr.bin/xlint/lint1/tree.c@1.639 / diff / nxr@1.639
lint: make 'offsetof(t, array-member)' a constant expression
The macro 'offsetof(t, m)' already expanded to a constant expression for
scalar members but not for arrays. This was because the macro expanded
to '(size_t)(((t *)0)->m)', which lint internally represents as
'addr(indir(ptr(0) + offset(m)))', and build_address simplifies
'addr(indir(x))' to 'x' if the types match. The types only match for
scalar types though, but not for arrays.
When build_address happens, the type information is incomplete,
therefore 'offsetof(t, array)' has to be simplified at a later point.
The macro 'offsetof(t, m)' already expanded to a constant expression for
scalar members but not for arrays. This was because the macro expanded
to '(size_t)(((t *)0)->m)', which lint internally represents as
'addr(indir(ptr(0) + offset(m)))', and build_address simplifies
'addr(indir(x))' to 'x' if the types match. The types only match for
scalar types though, but not for arrays.
When build_address happens, the type information is incomplete,
therefore 'offsetof(t, array)' has to be simplified at a later point.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/decl.c@1.29
/
diff
/
nxr@1.29
src/tests/usr.bin/xlint/lint1/decl_enum.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/decl_enum.c@1.5 / diff / nxr@1.5
tests/lint: test large enum constants and offsetof with array members
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/gcc_attribute_aligned.c@1.8
/
diff
/
nxr@1.8
src/usr.bin/xlint/lint1/decl.c@1.400 / diff / nxr@1.400
src/usr.bin/xlint/lint1/decl.c@1.400 / diff / nxr@1.400
lint: fix size of struct with large alignment
Lint now successfully passes all compile-time assertions in the amd64
kernel that deal with struct sizes.
Lint now successfully passes all compile-time assertions in the amd64
kernel that deal with struct sizes.
MAIN commitmail json YAML
sys/cdefs.h: pass __aligned to lint
Lint could parse _Alignas and __attribute__((__aligned__(4))) previously
but simply ignored them. Since today, they affect the layout of struct
and union.
Lint could parse _Alignas and __attribute__((__aligned__(4))) previously
but simply ignored them. Since today, they affect the layout of struct
and union.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/expr_precedence.c@1.12
/
diff
/
nxr@1.12
src/tests/usr.bin/xlint/lint1/gcc_attribute_aligned.c@1.7 / diff / nxr@1.7
src/usr.bin/xlint/lint1/cgram.y@1.494 / diff / nxr@1.494
src/usr.bin/xlint/lint1/debug.c@1.76 / diff / nxr@1.76
src/usr.bin/xlint/lint1/decl.c@1.399 / diff / nxr@1.399
src/usr.bin/xlint/lint1/externs1.h@1.223 / diff / nxr@1.223
src/usr.bin/xlint/lint1/lint1.h@1.223 / diff / nxr@1.223
src/tests/usr.bin/xlint/lint1/gcc_attribute_aligned.c@1.7 / diff / nxr@1.7
src/usr.bin/xlint/lint1/cgram.y@1.494 / diff / nxr@1.494
src/usr.bin/xlint/lint1/debug.c@1.76 / diff / nxr@1.76
src/usr.bin/xlint/lint1/decl.c@1.399 / diff / nxr@1.399
src/usr.bin/xlint/lint1/externs1.h@1.223 / diff / nxr@1.223
src/usr.bin/xlint/lint1/lint1.h@1.223 / diff / nxr@1.223
lint: support _Alignas and __attribute__((__aligned(4)))
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_132.c@1.40
/
diff
/
nxr@1.40
src/usr.bin/xlint/lint1/tree.c@1.638 / diff / nxr@1.638
src/usr.bin/xlint/lint1/tree.c@1.638 / diff / nxr@1.638
lint: fix warning about out-of-bounds bit-field value
MAIN commitmail json YAML
lint: demonstrate wrong warning about out-of-range bit-field
MAIN commitmail json YAML
time.3: clarify that *tloc is always set if tloc != NULL
MAIN commitmail json YAML
setmode.3: fix typos
MAIN commitmail json YAML
execve.2: fix typo in markup
MAIN commitmail json YAML
tests/cd9660: add debug info to the file list
MAIN commitmail json YAML
src/usr.bin/make/buf.c@1.58
/
diff
/
nxr@1.58
src/usr.bin/make/buf.h@1.50 / diff / nxr@1.50
src/usr.bin/make/var.c@1.1108 / diff / nxr@1.1108
src/usr.bin/make/buf.h@1.50 / diff / nxr@1.50
src/usr.bin/make/var.c@1.1108 / diff / nxr@1.1108
make: don't reallocate memory after evaluating an expression
When an expression is evaluated, the resulting text is short-lived in
almost all cases. In particular, the compaction neither affects the
target names nor the global variable values, which are the prime
candidates for permanent memory usage.
When an expression is evaluated, the resulting text is short-lived in
almost all cases. In particular, the compaction neither affects the
target names nor the global variable values, which are the prime
candidates for permanent memory usage.
MAIN commitmail json YAML
src/distrib/sets/lists/tests/mi@1.1314
/
diff
/
nxr@1.1314
src/etc/mtree/NetBSD.dist.tests@1.205 / diff / nxr@1.205
src/tests/fs/cd9660/Makefile@1.2 / diff / nxr@1.2
src/tests/fs/cd9660/h_hexdump_r.c@1.1 / diff / nxr@1.1
src/tests/fs/cd9660/pr_48787.image.bz2.uue deleted
src/tests/fs/cd9660/pr_48787.image.hex@1.1 / diff / nxr@1.1
src/tests/fs/cd9660/t_high_ino_big_file.sh@1.6 / diff / nxr@1.6
src/etc/mtree/NetBSD.dist.tests@1.205 / diff / nxr@1.205
src/tests/fs/cd9660/Makefile@1.2 / diff / nxr@1.2
src/tests/fs/cd9660/h_hexdump_r.c@1.1 / diff / nxr@1.1
src/tests/fs/cd9660/pr_48787.image.bz2.uue deleted
src/tests/fs/cd9660/pr_48787.image.hex@1.1 / diff / nxr@1.1
src/tests/fs/cd9660/t_high_ino_big_file.sh@1.6 / diff / nxr@1.6
tests/cd9660: replace compressed blob with readable hexdump
This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB. It's an ISO 9660 image though,
containing mostly null bytes. Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.
If the test is run, the ISO image is uncompressed, which takes several
minutes. Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.
This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB. It's an ISO 9660 image though,
containing mostly null bytes. Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.
If the test is run, the ISO image is uncompressed, which takes several
minutes. Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.
MAIN commitmail json YAML
src/tests/bin/df/t_df.sh@1.3
/
diff
/
nxr@1.3
src/tests/bin/pax/t_pax.sh@1.2 / diff / nxr@1.2
src/tests/bin/sh/t_ulimit.sh@1.4 / diff / nxr@1.4
src/tests/bin/sh/t_varquote.sh@1.6 / diff / nxr@1.6
src/tests/bin/tar/t_tar.sh@1.3 / diff / nxr@1.3
src/tests/crypto/libcrypto/t_libcrypto.sh@1.10 / diff / nxr@1.10
src/tests/fs/psshfs/t_psshfs.sh@1.10 / diff / nxr@1.10
src/tests/fs/tmpfs/h_funcs.subr@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_create.sh@1.9 / diff / nxr@1.9
src/tests/fs/tmpfs/t_devices.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_dots.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_exec.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_link.sh@1.7 / diff / nxr@1.7
src/tests/fs/tmpfs/t_mkdir.sh@1.9 / diff / nxr@1.9
src/tests/fs/tmpfs/t_mknod.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_mount.sh@1.7 / diff / nxr@1.7
src/tests/fs/tmpfs/t_pipes.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_read_write.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_readdir.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_remove.sh@1.6 / diff / nxr@1.6
:
(more 26 files)
src/tests/bin/pax/t_pax.sh@1.2 / diff / nxr@1.2
src/tests/bin/sh/t_ulimit.sh@1.4 / diff / nxr@1.4
src/tests/bin/sh/t_varquote.sh@1.6 / diff / nxr@1.6
src/tests/bin/tar/t_tar.sh@1.3 / diff / nxr@1.3
src/tests/crypto/libcrypto/t_libcrypto.sh@1.10 / diff / nxr@1.10
src/tests/fs/psshfs/t_psshfs.sh@1.10 / diff / nxr@1.10
src/tests/fs/tmpfs/h_funcs.subr@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_create.sh@1.9 / diff / nxr@1.9
src/tests/fs/tmpfs/t_devices.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_dots.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_exec.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_link.sh@1.7 / diff / nxr@1.7
src/tests/fs/tmpfs/t_mkdir.sh@1.9 / diff / nxr@1.9
src/tests/fs/tmpfs/t_mknod.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_mount.sh@1.7 / diff / nxr@1.7
src/tests/fs/tmpfs/t_pipes.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_read_write.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_readdir.sh@1.6 / diff / nxr@1.6
src/tests/fs/tmpfs/t_remove.sh@1.6 / diff / nxr@1.6
:
(more 26 files)
tests: replace deprecated '-s eq:...' with '-s exit:...'
MAIN commitmail json YAML
make: fix comment about forcing a use-after-free
The previous expression didn't cause any bug, as the modifier
':@VAR@loop@' changed the value of the expression, thus making the
expression independent from the variable value.
Instead, the variable needs to be deleted from within an indirect
modifier, and that modifier needs to evaluate to an empty string, thus
doing nothing and preserving the original expression value.
The previous expression didn't cause any bug, as the modifier
':@VAR@loop@' changed the value of the expression, thus making the
expression independent from the variable value.
Instead, the variable needs to be deleted from within an indirect
modifier, and that modifier needs to evaluate to an empty string, thus
doing nothing and preserving the original expression value.
MAIN commitmail json YAML
src/usr.bin/make/arch.c@1.217
/
diff
/
nxr@1.217
src/usr.bin/make/job.c@1.470 / diff / nxr@1.470
src/usr.bin/make/make.h@1.332 / diff / nxr@1.332
src/usr.bin/make/unit-tests/depsrc-end.mk@1.2 / diff / nxr@1.2
src/usr.bin/make/unit-tests/depsrc-nopath.exp@1.2 / diff / nxr@1.2
src/usr.bin/make/unit-tests/depsrc-nopath.mk@1.3 / diff / nxr@1.3
src/usr.bin/make/unit-tests/depsrc-phony.mk@1.4 / diff / nxr@1.4
src/usr.bin/make/var.c@1.1106 / diff / nxr@1.1106
src/usr.bin/make/job.c@1.470 / diff / nxr@1.470
src/usr.bin/make/make.h@1.332 / diff / nxr@1.332
src/usr.bin/make/unit-tests/depsrc-end.mk@1.2 / diff / nxr@1.2
src/usr.bin/make/unit-tests/depsrc-nopath.exp@1.2 / diff / nxr@1.2
src/usr.bin/make/unit-tests/depsrc-nopath.mk@1.3 / diff / nxr@1.3
src/usr.bin/make/unit-tests/depsrc-phony.mk@1.4 / diff / nxr@1.4
src/usr.bin/make/var.c@1.1106 / diff / nxr@1.1106
make: clean up, test .NOPATH
Trim down the comments in the archive module, as they mainly repeated
the code. Trim down the binary code size in the archive module, as it
is rarely used.
In Var_Parse, delay two variable assignments until they are actually
needed.
Trim down the comments in the archive module, as they mainly repeated
the code. Trim down the binary code size in the archive module, as it
is rarely used.
In Var_Parse, delay two variable assignments until they are actually
needed.
MAIN commitmail json YAML
src/usr.bin/make/unit-tests/archive.exp@1.8
/
diff
/
nxr@1.8
src/usr.bin/make/unit-tests/archive.mk@1.13 / diff / nxr@1.13
src/usr.bin/make/unit-tests/archive.mk@1.13 / diff / nxr@1.13
tests/make: test detection of static library files
MAIN commitmail json YAML
src/usr.bin/make/arch.c@1.216
/
diff
/
nxr@1.216
src/usr.bin/make/lst.c@1.108 / diff / nxr@1.108
src/usr.bin/make/lst.h@1.105 / diff / nxr@1.105
src/usr.bin/make/main.c@1.613 / diff / nxr@1.613
src/usr.bin/make/meta.c@1.208 / diff / nxr@1.208
src/usr.bin/make/parse.c@1.722 / diff / nxr@1.722
src/usr.bin/make/targ.c@1.181 / diff / nxr@1.181
src/usr.bin/make/lst.c@1.108 / diff / nxr@1.108
src/usr.bin/make/lst.h@1.105 / diff / nxr@1.105
src/usr.bin/make/main.c@1.613 / diff / nxr@1.613
src/usr.bin/make/meta.c@1.208 / diff / nxr@1.208
src/usr.bin/make/parse.c@1.722 / diff / nxr@1.722
src/usr.bin/make/targ.c@1.181 / diff / nxr@1.181
make: simplify freeing of lists
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/queries.c@1.29
/
diff
/
nxr@1.29
src/usr.bin/xlint/lint1/tree.c@1.637 / diff / nxr@1.637
src/usr.bin/xlint/lint1/tree.c@1.637 / diff / nxr@1.637
lint: converting a null pointer to another pointer type is not narrowing
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/queries.c@1.28
/
diff
/
nxr@1.28
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.20 / diff / nxr@1.20
src/usr.bin/xlint/lint1/err.c@1.241 / diff / nxr@1.241
src/usr.bin/xlint/lint1/tree.c@1.636 / diff / nxr@1.636
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.20 / diff / nxr@1.20
src/usr.bin/xlint/lint1/err.c@1.241 / diff / nxr@1.241
src/usr.bin/xlint/lint1/tree.c@1.636 / diff / nxr@1.636
lint: add query for conversion from void pointer to other pointer
MAIN commitmail json YAML
mips: fix syntax error in LDBL_MAX (since 2011)
MAIN commitmail json YAML
BUILDING: fix typo
MAIN commitmail json YAML
dri: disable lint
MAIN commitmail json YAML
src/usr.bin/make/job.c@1.469
/
diff
/
nxr@1.469
src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp@1.5 / diff / nxr@1.5
make: in parallel mode, print the directory in which a job failed
When multiple targets run in parallel, the "stopped in" line may be
several lines away from the "Failed target" line, making them hard to
correlate.
When multiple targets run in parallel, the "stopped in" line may be
several lines away from the "Failed target" line, making them hard to
correlate.
MAIN commitmail json YAML
gallium: disable lint
MAIN commitmail json YAML
tests/cp: clean up
Replace the deprecated "eq:0" with "exit:0", remove redundant "-o empty"
and "-e empty".
Replace the deprecated "eq:0" with "exit:0", remove redundant "-o empty"
and "-e empty".
MAIN commitmail json YAML
tests/cat: clean up
Multiple arguments to atf_set are joined by spaces, there's no need for
an extra space.
The exit status on success must be 0, so don't ignore it.
Remove the unnecessary shell wrapper, as no redirection is going on.
Multiple arguments to atf_set are joined by spaces, there's no need for
an extra space.
The exit status on success must be 0, so don't ignore it.
Remove the unnecessary shell wrapper, as no redirection is going on.
MAIN commitmail json YAML
CHANGES: fix typo
MAIN commitmail json YAML
makefs: fix out-of-bounds fsnode count in fsnode_sort
Found by running './makefs img.dat cd9660'.
While here, apply more KNF.
Found by running './makefs img.dat cd9660'.
While here, apply more KNF.
MAIN commitmail json YAML
src/usr.bin/make/cond.c@1.363
/
diff
/
nxr@1.363
src/usr.bin/make/make.h@1.331 / diff / nxr@1.331
src/usr.bin/make/parse.c@1.721 / diff / nxr@1.721
src/usr.bin/make/unit-tests/cmd-errors-jobs.exp@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/cmd-errors-jobs.mk@1.4 / diff / nxr@1.4
src/usr.bin/make/unit-tests/cmd-errors-lint.exp@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/cmd-errors-lint.mk@1.2 / diff / nxr@1.2
src/usr.bin/make/unit-tests/cmd-errors.exp@1.9 / diff / nxr@1.9
src/usr.bin/make/unit-tests/cmd-errors.mk@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/cmdline-undefined.mk@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/cmdline.mk@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/comment.mk@1.7 / diff / nxr@1.7
src/usr.bin/make/unit-tests/cond-cmp-string.mk@1.19 / diff / nxr@1.19
src/usr.bin/make/unit-tests/cond-func-defined.exp@1.9 / diff / nxr@1.9
src/usr.bin/make/unit-tests/cond-func-defined.mk@1.12 / diff / nxr@1.12
src/usr.bin/make/unit-tests/varmod-ifelse.mk@1.28 / diff / nxr@1.28
src/usr.bin/make/unit-tests/varmod-match.exp@1.16 / diff / nxr@1.16
src/usr.bin/make/unit-tests/varmod-match.mk@1.22 / diff / nxr@1.22
src/usr.bin/make/var.c@1.1105 / diff / nxr@1.1105
src/usr.bin/make/make.h@1.331 / diff / nxr@1.331
src/usr.bin/make/parse.c@1.721 / diff / nxr@1.721
src/usr.bin/make/unit-tests/cmd-errors-jobs.exp@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/cmd-errors-jobs.mk@1.4 / diff / nxr@1.4
src/usr.bin/make/unit-tests/cmd-errors-lint.exp@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/cmd-errors-lint.mk@1.2 / diff / nxr@1.2
src/usr.bin/make/unit-tests/cmd-errors.exp@1.9 / diff / nxr@1.9
src/usr.bin/make/unit-tests/cmd-errors.mk@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/cmdline-undefined.mk@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/cmdline.mk@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/comment.mk@1.7 / diff / nxr@1.7
src/usr.bin/make/unit-tests/cond-cmp-string.mk@1.19 / diff / nxr@1.19
src/usr.bin/make/unit-tests/cond-func-defined.exp@1.9 / diff / nxr@1.9
src/usr.bin/make/unit-tests/cond-func-defined.mk@1.12 / diff / nxr@1.12
src/usr.bin/make/unit-tests/varmod-ifelse.mk@1.28 / diff / nxr@1.28
src/usr.bin/make/unit-tests/varmod-match.exp@1.16 / diff / nxr@1.16
src/usr.bin/make/unit-tests/varmod-match.mk@1.22 / diff / nxr@1.22
src/usr.bin/make/var.c@1.1105 / diff / nxr@1.1105
make: clean up comments, code and tests
MAIN commitmail json YAML
make: trim down code for parsing the :gmtime and :localtime modifiers
The :gmtime and :localtime modifiers are not used often and thus are not
time-critical. Exchange the custom code that parses an integer from a
substring for an additional memory allocation.
Thanks sjg@ for suggesting to avoid the custom parsing code.
The :gmtime and :localtime modifiers are not used often and thus are not
time-critical. Exchange the custom code that parses an integer from a
substring for an additional memory allocation.
Thanks sjg@ for suggesting to avoid the custom parsing code.
MAIN commitmail json YAML
libntf: make MKREPRO timestamp compatible with NetBSD 10
In NetBSD 10, make(1) cannot handle :gmtime arguments that are
expressions, resulting in the error message "Unknown modifier '1'".
In NetBSD 10, make(1) cannot handle :gmtime arguments that are
expressions, resulting in the error message "Unknown modifier '1'".
MAIN commitmail json YAML
make: fix out-of-bounds read when evaluating :gmtime and :localtime
The function TryParseTime takes a pointer to a string, but the LazyBuf
returns a Substring, which is not guaranteed to be null-terminated or
delimited. In TryParseTime, calling strtoul on the Substring read past
the end of the substring.
Noticed in the NetBSD build in libntp, where the :gmtime modifier is
used in two places with the same timestamp value, of which the first was
evaluated correctly and the second wasn't.
The bug was introduced in var.c 1.1050 from 2023-05-09, when the
argument of the :gmtime and :localtime modifiers was allowed to be an
expression instead of an integer constant.
The function TryParseTime takes a pointer to a string, but the LazyBuf
returns a Substring, which is not guaranteed to be null-terminated or
delimited. In TryParseTime, calling strtoul on the Substring read past
the end of the substring.
Noticed in the NetBSD build in libntp, where the :gmtime modifier is
used in two places with the same timestamp value, of which the first was
evaluated correctly and the second wasn't.
The bug was introduced in var.c 1.1050 from 2023-05-09, when the
argument of the :gmtime and :localtime modifiers was allowed to be an
expression instead of an integer constant.
MAIN commitmail json YAML
UPDATING: remove not-so-recent entries
MAIN commitmail json YAML
src/bin/Makefile.inc@1.19
/
diff
/
nxr@1.19
src/sbin/Makefile.inc@1.24 / diff / nxr@1.24
src/sbin/fsck_lfs/Makefile@1.24 / diff / nxr@1.24
src/sbin/newfs_lfs/Makefile@1.16 / diff / nxr@1.16
src/sbin/resize_ffs/Makefile@1.8 / diff / nxr@1.8
src/usr.bin/Makefile.inc@1.12 / diff / nxr@1.12
src/usr.bin/kdump/Makefile@1.37 / diff / nxr@1.37
src/usr.bin/ktruss/Makefile@1.34 / diff / nxr@1.34
src/usr.bin/rump_server/Makefile@1.18 / diff / nxr@1.18
src/usr.sbin/Makefile.inc@1.9 / diff / nxr@1.9
src/sbin/Makefile.inc@1.24 / diff / nxr@1.24
src/sbin/fsck_lfs/Makefile@1.24 / diff / nxr@1.24
src/sbin/newfs_lfs/Makefile@1.16 / diff / nxr@1.16
src/sbin/resize_ffs/Makefile@1.8 / diff / nxr@1.8
src/usr.bin/Makefile.inc@1.12 / diff / nxr@1.12
src/usr.bin/kdump/Makefile@1.37 / diff / nxr@1.37
src/usr.bin/ktruss/Makefile@1.34 / diff / nxr@1.34
src/usr.bin/rump_server/Makefile@1.18 / diff / nxr@1.18
src/usr.sbin/Makefile.inc@1.9 / diff / nxr@1.9
{usr.,}{s,}bin: replace LINT_SUPPORTED with the standard NOLINT
While here, re-enable lint in those cases where lint was skipped due to
a bug in interpreting abstract types, which was fixed in cgram.y 1.469
from 2023-08-02.
While here, re-enable lint in those cases where lint was skipped due to
a bug in interpreting abstract types, which was fixed in cgram.y 1.469
from 2023-08-02.
MAIN commitmail json YAML
build.sh: fix typos in usage message
MAIN commitmail json YAML
src/usr.bin/make/compat.c@1.255
/
diff
/
nxr@1.255
src/usr.bin/make/job.c@1.468 / diff / nxr@1.468
src/usr.bin/make/make.h@1.330 / diff / nxr@1.330
src/usr.bin/make/parse.c@1.720 / diff / nxr@1.720
src/usr.bin/make/unit-tests/Makefile@1.343 / diff / nxr@1.343
src/usr.bin/make/unit-tests/cmd-errors-jobs.exp@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/cmd-errors-jobs.mk@1.3 / diff / nxr@1.3
src/usr.bin/make/unit-tests/cmd-errors-lint.exp@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/cmd-errors.exp@1.8 / diff / nxr@1.8
src/usr.bin/make/unit-tests/cond-token-string.exp@1.12 / diff / nxr@1.12
src/usr.bin/make/unit-tests/cond-token-string.mk@1.10 / diff / nxr@1.10
src/usr.bin/make/unit-tests/deptgt.exp@1.13 / diff / nxr@1.13
src/usr.bin/make/unit-tests/deptgt.mk@1.17 / diff / nxr@1.17
src/usr.bin/make/unit-tests/directive-for-errors.exp@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/directive-for-errors.mk@1.10 / diff / nxr@1.10
src/usr.bin/make/unit-tests/directive-for.exp@1.22 / diff / nxr@1.22
src/usr.bin/make/unit-tests/directive-for.mk@1.25 / diff / nxr@1.25
src/usr.bin/make/unit-tests/directive-include.exp@1.12 / diff / nxr@1.12
src/usr.bin/make/unit-tests/directive-include.mk@1.14 / diff / nxr@1.14
src/usr.bin/make/unit-tests/directive-undef.exp@1.10 / diff / nxr@1.10
:
(more 46 files)
src/usr.bin/make/job.c@1.468 / diff / nxr@1.468
src/usr.bin/make/make.h@1.330 / diff / nxr@1.330
src/usr.bin/make/parse.c@1.720 / diff / nxr@1.720
src/usr.bin/make/unit-tests/Makefile@1.343 / diff / nxr@1.343
src/usr.bin/make/unit-tests/cmd-errors-jobs.exp@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/cmd-errors-jobs.mk@1.3 / diff / nxr@1.3
src/usr.bin/make/unit-tests/cmd-errors-lint.exp@1.5 / diff / nxr@1.5
src/usr.bin/make/unit-tests/cmd-errors.exp@1.8 / diff / nxr@1.8
src/usr.bin/make/unit-tests/cond-token-string.exp@1.12 / diff / nxr@1.12
src/usr.bin/make/unit-tests/cond-token-string.mk@1.10 / diff / nxr@1.10
src/usr.bin/make/unit-tests/deptgt.exp@1.13 / diff / nxr@1.13
src/usr.bin/make/unit-tests/deptgt.mk@1.17 / diff / nxr@1.17
src/usr.bin/make/unit-tests/directive-for-errors.exp@1.6 / diff / nxr@1.6
src/usr.bin/make/unit-tests/directive-for-errors.mk@1.10 / diff / nxr@1.10
src/usr.bin/make/unit-tests/directive-for.exp@1.22 / diff / nxr@1.22
src/usr.bin/make/unit-tests/directive-for.mk@1.25 / diff / nxr@1.25
src/usr.bin/make/unit-tests/directive-include.exp@1.12 / diff / nxr@1.12
src/usr.bin/make/unit-tests/directive-include.mk@1.14 / diff / nxr@1.14
src/usr.bin/make/unit-tests/directive-undef.exp@1.10 / diff / nxr@1.10
:
(more 46 files)
make: provide more context information for parse/evaluate errors
MAIN commitmail json YAML
libntp: clean up MKREPRO_TIMESTAMP handling
NetBSD's make has built-in support for formatting timestamps, so use
that instead of relying on an external tool. The month name is still
always in the C locale, and possible errors are reported in the affected
line, due to the ':=' assignment operator.
Without the ':=' assignment operator, the intermediate variable would
not be necessary, but in that case, make's error handling is broken and
unspecific.
NetBSD's make has built-in support for formatting timestamps, so use
that instead of relying on an external tool. The month name is still
always in the C locale, and possible errors are reported in the affected
line, due to the ':=' assignment operator.
Without the ':=' assignment operator, the intermediate variable would
not be necessary, but in that case, make's error handling is broken and
unspecific.
MAIN commitmail json YAML
tests/lint: show how to trigger message 207
MAIN commitmail json YAML
make: make string matching platform-independent
Previously, whether the character range '[a-è¾°]' matched, depended on the
signedness of the plain 'char' type. Since make operates on byte
strings and does not support UTF-8 or other multi-byte character
encodings, this edge case is not expected to occur in practice.
No change in the unit tests as this edge case is not covered by tests.
Previously, whether the character range '[a-è¾°]' matched, depended on the
signedness of the plain 'char' type. Since make operates on byte
strings and does not support UTF-8 or other multi-byte character
encodings, this edge case is not expected to occur in practice.
No change in the unit tests as this edge case is not covered by tests.
MAIN commitmail json YAML
src/usr.bin/make/parse.c@1.719
/
diff
/
nxr@1.719
src/usr.bin/make/unit-tests/directive-export-impl.exp@1.18 / diff / nxr@1.18
src/usr.bin/make/unit-tests/directive-for-escape.exp@1.24 / diff / nxr@1.24
src/usr.bin/make/unit-tests/opt-debug-parse.exp@1.11 / diff / nxr@1.11
src/usr.bin/make/unit-tests/var-eval-short.exp@1.24 / diff / nxr@1.24
src/usr.bin/make/unit-tests/varmod-loop.exp@1.20 / diff / nxr@1.20
src/usr.bin/make/unit-tests/varname-dot-shell.exp@1.21 / diff / nxr@1.21
src/usr.bin/make/unit-tests/directive-export-impl.exp@1.18 / diff / nxr@1.18
src/usr.bin/make/unit-tests/directive-for-escape.exp@1.24 / diff / nxr@1.24
src/usr.bin/make/unit-tests/opt-debug-parse.exp@1.11 / diff / nxr@1.11
src/usr.bin/make/unit-tests/var-eval-short.exp@1.24 / diff / nxr@1.24
src/usr.bin/make/unit-tests/varmod-loop.exp@1.20 / diff / nxr@1.20
src/usr.bin/make/unit-tests/varname-dot-shell.exp@1.21 / diff / nxr@1.21
make: add debug logging for .if and .for lines in -dp mode
This helps track down in which line a condition is evaluated.
This helps track down in which line a condition is evaluated.
MAIN commitmail json YAML
tests/fmtcheck: show that fmtcheck does not support "%2$s"
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/cksnprintb.c@1.14
/
diff
/
nxr@1.14
src/usr.bin/xlint/lint1/externs1.h@1.222 / diff / nxr@1.222
src/usr.bin/xlint/lint1/tree.c@1.635 / diff / nxr@1.635
src/usr.bin/xlint/lint1/externs1.h@1.222 / diff / nxr@1.222
src/usr.bin/xlint/lint1/tree.c@1.635 / diff / nxr@1.635
lint: clean up and speed up the check for snprintb
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_363.c@1.5
/
diff
/
nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_371.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_376.c@1.3 / diff / nxr@1.3
src/usr.bin/xlint/lint1/cksnprintb.c@1.13 / diff / nxr@1.13
src/usr.bin/xlint/lint1/err.c@1.240 / diff / nxr@1.240
src/tests/usr.bin/xlint/lint1/msg_371.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_376.c@1.3 / diff / nxr@1.3
src/usr.bin/xlint/lint1/cksnprintb.c@1.13 / diff / nxr@1.13
src/usr.bin/xlint/lint1/err.c@1.240 / diff / nxr@1.240
lint: in snprintb, warn about all escaped characters in descriptions
MAIN commitmail json YAML
ed: fix inconsistency in comment
MAIN commitmail json YAML
src/lib/libutil/snprintb.3@1.39
/
diff
/
nxr@1.39
src/tests/lib/libutil/t_snprintb.c@1.36 / diff / nxr@1.36
src/tests/lib/libutil/t_snprintb.c@1.36 / diff / nxr@1.36
snprintb.3: provide examples for hexadecimal character escapes
Suggested by uwe@, in reaction to the previous commit, which preferred
octal in the examples. Hexadecimal escapes are more familiar to most
programmers, and the chance of mistaking \x14 for decimal 14 is less
than the chance of mistaking octal \014 for decimal 14.
Suggested by uwe@, in reaction to the previous commit, which preferred
octal in the examples. Hexadecimal escapes are more familiar to most
programmers, and the chance of mistaking \x14 for decimal 14 is less
than the chance of mistaking octal \014 for decimal 14.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.48
/
diff
/
nxr@1.48
src/tests/lib/libutil/t_snprintb.c@1.35 / diff / nxr@1.35
src/tests/lib/libutil/t_snprintb.c@1.35 / diff / nxr@1.35
snprintb: reject empty bit descriptions and wrongly placed defaults
MAIN commitmail json YAML
snprintb.3: clean up formatting and wording, prefer octal in examples
Using hexadecimal character escapes requires separate string literals if
the description starts with one of the letters A-F; octal character
escapes have at most 3 digits, reducing ambiguity.
Using hexadecimal character escapes requires separate string literals if
the description starts with one of the letters A-F; octal character
escapes have at most 3 digits, reducing ambiguity.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.47
/
diff
/
nxr@1.47
src/lib/libutil/snprintb.3@1.37 / diff / nxr@1.37
src/tests/lib/libutil/t_snprintb.c@1.34 / diff / nxr@1.34
src/lib/libutil/snprintb.3@1.37 / diff / nxr@1.37
src/tests/lib/libutil/t_snprintb.c@1.34 / diff / nxr@1.34
snprintb: reject combinations of 'f' with ':' as well as 'F' with '='
These combinations would lead to garbled output.
These combinations would lead to garbled output.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.46
/
diff
/
nxr@1.46
src/tests/lib/libutil/t_snprintb.c@1.33 / diff / nxr@1.33
src/tests/lib/libutil/t_snprintb.c@1.33 / diff / nxr@1.33
snprintb: reject empty descriptions
In cases where the snprintb output is garbled, it is not trustworthy, so
make sure the mistakes in the bitfmt are fixed early.
In cases where the snprintb output is garbled, it is not trustworthy, so
make sure the mistakes in the bitfmt are fixed early.
MAIN commitmail json YAML
flex.1: fix single-bit error in contributor name
MAIN commitmail json YAML
sparc/fpsetround: fix the nearby signed integer overflow as well
Same as for sparc64 a few days ago.
Same as for sparc64 a few days ago.
MAIN commitmail json YAML
tests/make: pass PATH onto child processes
This fixes the tests on some Cygwin variant where the shell does not
initialize the PATH environment variable when it's missing.
This fixes the tests on some Cygwin variant where the shell does not
initialize the PATH environment variable when it's missing.
MAIN commitmail json YAML
src/usr.bin/make/unit-tests/opt-chdir.exp@1.4
/
diff
/
nxr@1.4
src/usr.bin/make/unit-tests/opt-chdir.mk@1.7 / diff / nxr@1.7
src/usr.bin/make/unit-tests/opt-chdir.mk@1.7 / diff / nxr@1.7
tests/make: remove test for overly long chdir argument
On Cygwin, the path '/././..././' is normalized before being passed to
the child 'make' process. Since overly long pathnames are not required
to be supported on all platforms, remove the test.
On Cygwin, the path '/././..././' is normalized before being passed to
the child 'make' process. Since overly long pathnames are not required
to be supported on all platforms, remove the test.
MAIN commitmail json YAML
make: remove unreachable code in handling .for loops
MAIN commitmail json YAML
src/usr.bin/make/parse.c@1.718
/
diff
/
nxr@1.718
src/usr.bin/make/unit-tests/directive-for-null.exp@1.3 / diff / nxr@1.3
src/usr.bin/make/unit-tests/directive-for-null.mk@1.4 / diff / nxr@1.4
src/usr.bin/make/unit-tests/opt-file.exp@1.8 / diff / nxr@1.8
src/usr.bin/make/unit-tests/opt-file.mk@1.16 / diff / nxr@1.16
src/usr.bin/make/unit-tests/directive-for-null.exp@1.3 / diff / nxr@1.3
src/usr.bin/make/unit-tests/directive-for-null.mk@1.4 / diff / nxr@1.4
src/usr.bin/make/unit-tests/opt-file.exp@1.8 / diff / nxr@1.8
src/usr.bin/make/unit-tests/opt-file.mk@1.16 / diff / nxr@1.16
make: exit immediately after reading a null byte from a makefile
The chance of other garbage bytes in such a file is just too high.
The chance of other garbage bytes in such a file is just too high.
MAIN commitmail json YAML
tests/snprintb_m: test null-terminated output in error case
While here, clean up the buffer handling for the visualized array
content in case of a failed test.
While here, clean up the buffer handling for the visualized array
content in case of a failed test.
MAIN commitmail json YAML
snprintb: remove redundant memset in kernel mode
The provided buffer is already null-terminated by finish_buffer, even in
error cases, there is no need to repeat the same work.
The provided buffer is already null-terminated by finish_buffer, even in
error cases, there is no need to repeat the same work.
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/README.md@1.18
/
diff
/
nxr@1.18
src/usr.bin/xlint/lint1/debug.c@1.75 / diff / nxr@1.75
src/usr.bin/xlint/lint1/lint1.h@1.222 / diff / nxr@1.222
src/usr.bin/xlint/lint1/op.h@1.28 / diff / nxr@1.28
src/usr.bin/xlint/lint1/oper.c@1.16 / diff / nxr@1.16
src/usr.bin/xlint/lint1/tree.c@1.634 / diff / nxr@1.634
src/usr.bin/xlint/lint1/debug.c@1.75 / diff / nxr@1.75
src/usr.bin/xlint/lint1/lint1.h@1.222 / diff / nxr@1.222
src/usr.bin/xlint/lint1/op.h@1.28 / diff / nxr@1.28
src/usr.bin/xlint/lint1/oper.c@1.16 / diff / nxr@1.16
src/usr.bin/xlint/lint1/tree.c@1.634 / diff / nxr@1.634
lint: merge function call operators 'CALL' and 'ICALL'
MAIN commitmail json YAML
lint: document which fields are not reset when starting a new type
Setting all visible fields to their null value seemed as if the whole
object were reset.
Setting all visible fields to their null value seemed as if the whole
object were reset.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/queries.c@1.27
/
diff
/
nxr@1.27
src/usr.bin/xlint/lint1/tree.c@1.633 / diff / nxr@1.633
src/usr.bin/xlint/lint1/tree.c@1.633 / diff / nxr@1.633
lint: in the query about implicit conversions, ignore casts
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/queries.c@1.26
/
diff
/
nxr@1.26
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.19 / diff / nxr@1.19
src/usr.bin/xlint/lint1/err.c@1.239 / diff / nxr@1.239
src/usr.bin/xlint/lint1/tree.c@1.632 / diff / nxr@1.632
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.19 / diff / nxr@1.19
src/usr.bin/xlint/lint1/err.c@1.239 / diff / nxr@1.239
src/usr.bin/xlint/lint1/tree.c@1.632 / diff / nxr@1.632
lint: add query for implicit integer-to-floating conversion
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_168.c@1.13
/
diff
/
nxr@1.13
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.14 / diff / nxr@1.14
src/tests/usr.bin/xlint/lint1/queries.c@1.25 / diff / nxr@1.25
src/usr.bin/xlint/lint1/err.c@1.238 / diff / nxr@1.238
src/usr.bin/xlint/lint1/init.c@1.268 / diff / nxr@1.268
src/usr.bin/xlint/lint1/tree.c@1.631 / diff / nxr@1.631
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.14 / diff / nxr@1.14
src/tests/usr.bin/xlint/lint1/queries.c@1.25 / diff / nxr@1.25
src/usr.bin/xlint/lint1/err.c@1.238 / diff / nxr@1.238
src/usr.bin/xlint/lint1/init.c@1.268 / diff / nxr@1.268
src/usr.bin/xlint/lint1/tree.c@1.631 / diff / nxr@1.631
lint: do not convert array subscripts from size_t to ptrdiff_t
The C standards do not specify a fixed type for an array subscript, it
just has to be an integer type. Previously, query 4 fired for the
ubiquitous expression 'ptr[sz]' when sz had type 'size_t'.
The test platform_ilp32_long is unaffected by this change, as the
integer constant 0x80000000 has type 'unsigned int', while size_t is
'unsigned long' on those platforms, and even though the types 'unsigned
int' and 'unsigned long' have the same value space, there's still a
conversion, at least for now.
The C standards do not specify a fixed type for an array subscript, it
just has to be an integer type. Previously, query 4 fired for the
ubiquitous expression 'ptr[sz]' when sz had type 'size_t'.
The test platform_ilp32_long is unaffected by this change, as the
integer constant 0x80000000 has type 'unsigned int', while size_t is
'unsigned long' on those platforms, and even though the types 'unsigned
int' and 'unsigned long' have the same value space, there's still a
conversion, at least for now.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/d_c99_init.c@1.48
/
diff
/
nxr@1.48
src/tests/usr.bin/xlint/lint1/msg_167.c@1.7 / diff / nxr@1.7
src/tests/usr.bin/xlint/lint1/msg_168.c@1.12 / diff / nxr@1.12
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.7 / diff / nxr@1.7
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.9 / diff / nxr@1.9
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.13 / diff / nxr@1.13
src/usr.bin/xlint/lint1/err.c@1.237 / diff / nxr@1.237
src/usr.bin/xlint/lint1/init.c@1.267 / diff / nxr@1.267
src/usr.bin/xlint/lint1/tree.c@1.630 / diff / nxr@1.630
src/tests/usr.bin/xlint/lint1/msg_167.c@1.7 / diff / nxr@1.7
src/tests/usr.bin/xlint/lint1/msg_168.c@1.12 / diff / nxr@1.12
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.7 / diff / nxr@1.7
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.9 / diff / nxr@1.9
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.13 / diff / nxr@1.13
src/usr.bin/xlint/lint1/err.c@1.237 / diff / nxr@1.237
src/usr.bin/xlint/lint1/init.c@1.267 / diff / nxr@1.267
src/usr.bin/xlint/lint1/tree.c@1.630 / diff / nxr@1.630
lint: reword messages about array subscripts to sound more natural
MAIN commitmail json YAML
src/usr.bin/xlint/Makefile.inc@1.29
/
diff
/
nxr@1.29
src/usr.bin/xlint/lint1/cgram.y@1.493 / diff / nxr@1.493
src/usr.bin/xlint/lint1/decl.c@1.397 / diff / nxr@1.397
src/usr.bin/xlint/lint1/externs1.h@1.221 / diff / nxr@1.221
src/usr.bin/xlint/lint1/func.c@1.186 / diff / nxr@1.186
src/usr.bin/xlint/lint1/init.c@1.266 / diff / nxr@1.266
src/usr.bin/xlint/lint1/lex.c@1.223 / diff / nxr@1.223
src/usr.bin/xlint/lint1/tree.c@1.629 / diff / nxr@1.629
src/usr.bin/xlint/lint1/cgram.y@1.493 / diff / nxr@1.493
src/usr.bin/xlint/lint1/decl.c@1.397 / diff / nxr@1.397
src/usr.bin/xlint/lint1/externs1.h@1.221 / diff / nxr@1.221
src/usr.bin/xlint/lint1/func.c@1.186 / diff / nxr@1.186
src/usr.bin/xlint/lint1/init.c@1.266 / diff / nxr@1.266
src/usr.bin/xlint/lint1/lex.c@1.223 / diff / nxr@1.223
src/usr.bin/xlint/lint1/tree.c@1.629 / diff / nxr@1.629
lint: clean up
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_186.c@1.7
/
diff
/
nxr@1.7
src/usr.bin/xlint/lint1/err.c@1.236 / diff / nxr@1.236
src/usr.bin/xlint/lint1/init.c@1.265 / diff / nxr@1.265
src/usr.bin/xlint/lint1/err.c@1.236 / diff / nxr@1.236
src/usr.bin/xlint/lint1/init.c@1.265 / diff / nxr@1.265
lint: fix wording of warning about bit-field initializer
MAIN commitmail json YAML
moused: remove undocumented and unused option 'C'
MAIN commitmail json YAML
lint: add missing assignment to $$ in grammar
Byacc and Bison both provide this assignment for all actions, whether
default or not, but the wording in POSIX doesn't guarantee this.
Byacc and Bison both provide this assignment for all actions, whether
default or not, but the wording in POSIX doesn't guarantee this.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_141.c@1.17
/
diff
/
nxr@1.17
src/usr.bin/xlint/lint1/emit1.c@1.94 / diff / nxr@1.94
src/usr.bin/xlint/lint1/tree.c@1.628 / diff / nxr@1.628
src/usr.bin/xlint/lint1/emit1.c@1.94 / diff / nxr@1.94
src/usr.bin/xlint/lint1/tree.c@1.628 / diff / nxr@1.628
lint: clean up; extend overflow test
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_167.c@1.6
/
diff
/
nxr@1.6
src/tests/usr.bin/xlint/lint1/msg_168.c@1.11 / diff / nxr@1.11
src/tests/usr.bin/xlint/lint1/msg_187.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/msg_199.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_200.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/platform_ilp32.c@1.5 / diff / nxr@1.5
src/usr.bin/xlint/lint1/err.c@1.234 / diff / nxr@1.234
src/usr.bin/xlint/lint1/func.c@1.185 / diff / nxr@1.185
src/usr.bin/xlint/lint1/init.c@1.264 / diff / nxr@1.264
src/usr.bin/xlint/lint1/tree.c@1.627 / diff / nxr@1.627
src/tests/usr.bin/xlint/lint1/msg_168.c@1.11 / diff / nxr@1.11
src/tests/usr.bin/xlint/lint1/msg_187.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/msg_199.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_200.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/platform_ilp32.c@1.5 / diff / nxr@1.5
src/usr.bin/xlint/lint1/err.c@1.234 / diff / nxr@1.234
src/usr.bin/xlint/lint1/func.c@1.185 / diff / nxr@1.185
src/usr.bin/xlint/lint1/init.c@1.264 / diff / nxr@1.264
src/usr.bin/xlint/lint1/tree.c@1.627 / diff / nxr@1.627
lint: don't use 'long' in diagnostics
The size of 'long' differs between 64-bit and 32-bit platforms.
Eliminate this possible platform-dependency.
The size of 'long' differs between 64-bit and 32-bit platforms.
Eliminate this possible platform-dependency.
MAIN commitmail json YAML
tools/Makefile: clean up TOOLDIR validation
At the point where tools/Makefile is loaded, TOOLDIR doesn't have to
exist yet, it will be created later. Remove the redundant quotes from
the .error messages.
At the point where tools/Makefile is loaded, TOOLDIR doesn't have to
exist yet, it will be created later. Remove the redundant quotes from
the .error messages.
MAIN commitmail json YAML
apei: fix typos in comments and snprintb bitfmt
MAIN commitmail json YAML
apei: fix typos in comments
MAIN commitmail json YAML
t_strptime: fix typo in test description
MAIN commitmail json YAML
libm/s_logl: suppress lint warnings
Seen on sparc64.
Seen on sparc64.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_132.c@1.38
/
diff
/
nxr@1.38
src/usr.bin/xlint/lint1/tree.c@1.626 / diff / nxr@1.626
src/usr.bin/xlint/lint1/tree.c@1.626 / diff / nxr@1.626
lint: fix warnings about loss of accuracy on bit-field operations
MAIN commitmail json YAML
tests/lint: demonstrate wrong warnings about lossy bit field operations
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_356.c@1.3
/
diff
/
nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_362.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_364.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_365.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_366.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_368.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_374.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_377.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_378.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/cksnprintb.c@1.12 / diff / nxr@1.12
src/usr.bin/xlint/lint1/err.c@1.233 / diff / nxr@1.233
src/tests/usr.bin/xlint/lint1/msg_362.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_364.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_365.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_366.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_368.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_374.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_377.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_378.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/cksnprintb.c@1.12 / diff / nxr@1.12
src/usr.bin/xlint/lint1/err.c@1.233 / diff / nxr@1.233
lint: rename snprintb 'directives' to 'conversions'
This aligns the terminology with the snprintf function.
This aligns the terminology with the snprintf function.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.44
/
diff
/
nxr@1.44
src/tests/lib/libutil/t_snprintb.c@1.31 / diff / nxr@1.31
src/tests/lib/libutil/t_snprintb.c@1.31 / diff / nxr@1.31
snprintb: mark the end of the buffer if the buffer is too small
This avoids confusion in case the buffer ends with an incomplete number.
This avoids confusion in case the buffer ends with an incomplete number.
MAIN commitmail json YAML
sparc64/fpsetround: avoid shifting into the sign bit
Lint had warned about the constant expression '0x03 << 30' but not about
the structurally equal nonconstant expression '(rnd_dir & 0x03) << 30'.
No binary change.
Lint had warned about the constant expression '0x03 << 30' but not about
the structurally equal nonconstant expression '(rnd_dir & 0x03) << 30'.
No binary change.
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/ckctype.c@1.12
/
diff
/
nxr@1.12
src/usr.bin/xlint/lint1/ckgetopt.c@1.27 / diff / nxr@1.27
src/usr.bin/xlint/lint1/debug.c@1.74 / diff / nxr@1.74
src/usr.bin/xlint/lint1/emit1.c@1.93 / diff / nxr@1.93
src/usr.bin/xlint/lint1/tree.c@1.625 / diff / nxr@1.625
src/usr.bin/xlint/lint1/ckgetopt.c@1.27 / diff / nxr@1.27
src/usr.bin/xlint/lint1/debug.c@1.74 / diff / nxr@1.74
src/usr.bin/xlint/lint1/emit1.c@1.93 / diff / nxr@1.93
src/usr.bin/xlint/lint1/tree.c@1.625 / diff / nxr@1.625
lint: keep invalid arguments in function calls
Previously, arguments of incomplete type or 'void' cleared all arguments
of the function call expression, requiring extra checks in later checks.
Invalid function calls are now exported to the .ln files, but that's
irrelevant in practice as these invalid function calls make lint1 fail,
after which xlint removes the .ln file.
Previously, arguments of incomplete type or 'void' cleared all arguments
of the function call expression, requiring extra checks in later checks.
Invalid function calls are now exported to the .ln files, but that's
irrelevant in practice as these invalid function calls make lint1 fail,
after which xlint removes the .ln file.
MAIN commitmail json YAML
src/tests/usr.bin/stat/t_stat.sh@1.2
/
diff
/
nxr@1.2
src/usr.bin/stat/stat.c@1.53 / diff / nxr@1.53
src/usr.bin/stat/stat.c@1.53 / diff / nxr@1.53
stat: don't allow numeric formatting flags on strings
Calling snprintf with "%+s" invokes undefined behavior.
Calling snprintf with "%+s" invokes undefined behavior.
MAIN commitmail json YAML
src/distrib/sets/lists/tests/mi@1.1310
/
diff
/
nxr@1.1310
src/etc/mtree/NetBSD.dist.tests@1.203 / diff / nxr@1.203
src/tests/usr.bin/Makefile@1.40 / diff / nxr@1.40
src/tests/usr.bin/stat/Makefile@1.1 / diff / nxr@1.1
src/tests/usr.bin/stat/t_stat.sh@1.1 / diff / nxr@1.1
src/etc/mtree/NetBSD.dist.tests@1.203 / diff / nxr@1.203
src/tests/usr.bin/Makefile@1.40 / diff / nxr@1.40
src/tests/usr.bin/stat/Makefile@1.1 / diff / nxr@1.1
src/tests/usr.bin/stat/t_stat.sh@1.1 / diff / nxr@1.1
tests/stat: test the left-aligned and right-aligned 'S' format
MAIN commitmail json YAML
stat: fix lint warning about constant argument to '!'
No binary change.
No binary change.
MAIN commitmail json YAML
tests/lint: ensure that lint correctly decays array parameter types
MAIN commitmail json YAML
lint: trim down the check for snprintb formats
MAIN commitmail json YAML
tests/lint: extend test for previously wrong warning about bit-fields
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_132.c@1.35
/
diff
/
nxr@1.35
src/tests/usr.bin/xlint/lint1/msg_267.c@1.8 / diff / nxr@1.8
src/usr.bin/xlint/lint1/tree.c@1.624 / diff / nxr@1.624
src/tests/usr.bin/xlint/lint1/msg_267.c@1.8 / diff / nxr@1.8
src/usr.bin/xlint/lint1/tree.c@1.624 / diff / nxr@1.624
lint: fix warning about loss of conversion for unsigned bit-fields
Since decl.c 1.180 from 2021-05-02.
Since decl.c 1.180 from 2021-05-02.
MAIN commitmail json YAML
tests/lint: demonstrate wrong warning when comparing a bit-field
Since decl.c 1.180 from 2021-05-02, which allowed arbitrary integer
types to be used as the underlying type for bit-fields in GCC mode.
Since decl.c 1.180 from 2021-05-02, which allowed arbitrary integer
types to be used as the underlying type for bit-fields in GCC mode.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/expr_fold.c@1.15
/
diff
/
nxr@1.15
src/tests/usr.bin/xlint/lint1/msg_141.c@1.16 / diff / nxr@1.16
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.12 / diff / nxr@1.12
src/usr.bin/xlint/lint1/err.c@1.232 / diff / nxr@1.232
src/usr.bin/xlint/lint1/tree.c@1.623 / diff / nxr@1.623
src/tests/usr.bin/xlint/lint1/msg_141.c@1.16 / diff / nxr@1.16
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.12 / diff / nxr@1.12
src/usr.bin/xlint/lint1/err.c@1.232 / diff / nxr@1.232
src/usr.bin/xlint/lint1/tree.c@1.623 / diff / nxr@1.623
lint: add details to the message about integer overflow
Having only the operator was too unspecific to be actionable, so add the
actual numbers and the data type.
Having only the operator was too unspecific to be actionable, so add the
actual numbers and the data type.
MAIN commitmail json YAML
kdump: keep the comment with its corresponding code
No binary change.
No binary change.
MAIN commitmail json YAML
postinstall: fix parameter order in usage message
MAIN commitmail json YAML
compiler_rt: allow signed bit shifts for __negv
Standard C defines '1 << 31' as undefined behavior, but
https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html allows
it for GCC.
Standard C defines '1 << 31' as undefined behavior, but
https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html allows
it for GCC.
MAIN commitmail json YAML
src/sys/arch/sparc/include/ctlreg.h@1.32
/
diff
/
nxr@1.32
src/sys/arch/sparc64/include/ctlreg.h@1.71 / diff / nxr@1.71
src/sys/arch/sparc64/include/ctlreg.h@1.71 / diff / nxr@1.71
sparc: fix snprintb formats for SFSR_BITS
MAIN commitmail json YAML
lsi64854reg: fix snprintb formats DDMACSR_BITS and PDMACSR_BITS
MAIN commitmail json YAML
powerpc/hid: fix snprintb format for HID0_970_BITMASK_U
MAIN commitmail json YAML
sparc/sbusreg: fix snprintb format for SBUS_AFSR_BITS
MAIN commitmail json YAML
sparc/vmereg: fix snprintb format VMEBUS_AFSR_BITS
MAIN commitmail json YAML
lint: clean up tree matcher for snprintb calls
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.5
/
diff
/
nxr@1.5
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.7 / diff / nxr@1.7
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.11 / diff / nxr@1.11
src/usr.bin/xlint/lint1/tree.c@1.622 / diff / nxr@1.622
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.7 / diff / nxr@1.7
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.11 / diff / nxr@1.11
src/usr.bin/xlint/lint1/tree.c@1.622 / diff / nxr@1.622
lint: saturate signed integer overflow
In array address calculations, this prevents a 'array subscript cannot
be negative' for large array subscripts.
In array address calculations, this prevents a 'array subscript cannot
be negative' for large array subscripts.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_141.c@1.15
/
diff
/
nxr@1.15
src/usr.bin/xlint/lint1/tree.c@1.621 / diff / nxr@1.621
src/usr.bin/xlint/lint1/tree.c@1.621 / diff / nxr@1.621
lint: fix integer overflow detection
Previously, an unsigned operation that had a negative result went
undetected in a few cases. Now, all results that are not representable
by their type are considered overflows.
The implementation of signed shift-right had been wrong for a few
commits.
Previously, an unsigned operation that had a negative result went
undetected in a few cases. Now, all results that are not representable
by their type are considered overflows.
The implementation of signed shift-right had been wrong for a few
commits.
MAIN commitmail json YAML
lint: clean up check for overflow in integer constants
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/expr_fold.c@1.14
/
diff
/
nxr@1.14
src/tests/usr.bin/xlint/lint1/msg_141.c@1.14 / diff / nxr@1.14
src/usr.bin/xlint/lint1/tree.c@1.619 / diff / nxr@1.619
src/tests/usr.bin/xlint/lint1/msg_141.c@1.14 / diff / nxr@1.14
src/usr.bin/xlint/lint1/tree.c@1.619 / diff / nxr@1.619
lint: detect more cases of integer overflow in constant expressions
For unsigned integers, detect when 'a + b' wraps around.
For unsigned integers, detect when 'a + b' wraps around.
MAIN commitmail json YAML
lint: split integer overflow check into separate functions
The checks for unsigned and signed integers differ for each operator, so
there's no point having both parts in the same function.
The checks for unsigned and signed integers differ for each operator, so
there's no point having both parts in the same function.
MAIN commitmail json YAML
tests/lint: enable test for integer overflow in array index
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/expr_fold.c@1.13
/
diff
/
nxr@1.13
src/tests/usr.bin/xlint/lint1/msg_141.c@1.13 / diff / nxr@1.13
src/usr.bin/xlint/lint1/tree.c@1.617 / diff / nxr@1.617
src/tests/usr.bin/xlint/lint1/msg_141.c@1.13 / diff / nxr@1.13
src/usr.bin/xlint/lint1/tree.c@1.617 / diff / nxr@1.617
lint: remove wrong warning about overflow in unary '-' for unsigned
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_141.c@1.12
/
diff
/
nxr@1.12
src/usr.bin/xlint/lint1/tree.c@1.616 / diff / nxr@1.616
src/usr.bin/xlint/lint1/tree.c@1.616 / diff / nxr@1.616
lint: fix integer overflow in integer overflow check
MAIN commitmail json YAML
tests/lint: test integer overflow when folding constants
The test is still incomplete, yet it has discovered several bugs that
are worth fixing.
The test is still incomplete, yet it has discovered several bugs that
are worth fixing.
MAIN commitmail json YAML
lint: in check for integer overflow, sort operators
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/expr_fold.c@1.12
/
diff
/
nxr@1.12
src/usr.bin/xlint/lint1/tree.c@1.614 / diff / nxr@1.614
src/usr.bin/xlint/lint1/tree.c@1.614 / diff / nxr@1.614
lint: fix excessive overflow warning after division by zero
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.4
/
diff
/
nxr@1.4
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.9 / diff / nxr@1.9
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.6 / diff / nxr@1.6
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.9 / diff / nxr@1.9
tests/lint: demonstrate integer overflow on lp64 platforms
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/platform_ilp32_int.c@1.3
/
diff
/
nxr@1.3
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/platform_ilp32_long.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/platform_lp64.c@1.8 / diff / nxr@1.8
tests/lint: test check for out-of-bounds array index
MAIN commitmail json YAML
lint: merge duplicate code for checking array index
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/README.md@1.16
/
diff
/
nxr@1.16
src/usr.bin/xlint/lint1/cgram.y@1.491 / diff / nxr@1.491
src/usr.bin/xlint/lint1/ckbool.c@1.30 / diff / nxr@1.30
src/usr.bin/xlint/lint1/ckctype.c@1.11 / diff / nxr@1.11
src/usr.bin/xlint/lint1/ckgetopt.c@1.26 / diff / nxr@1.26
src/usr.bin/xlint/lint1/cksnprintb.c@1.9 / diff / nxr@1.9
src/usr.bin/xlint/lint1/debug.c@1.73 / diff / nxr@1.73
src/usr.bin/xlint/lint1/emit1.c@1.92 / diff / nxr@1.92
src/usr.bin/xlint/lint1/func.c@1.184 / diff / nxr@1.184
src/usr.bin/xlint/lint1/init.c@1.263 / diff / nxr@1.263
src/usr.bin/xlint/lint1/lint1.h@1.221 / diff / nxr@1.221
src/usr.bin/xlint/lint1/tree.c@1.612 / diff / nxr@1.612
src/usr.bin/xlint/lint1/cgram.y@1.491 / diff / nxr@1.491
src/usr.bin/xlint/lint1/ckbool.c@1.30 / diff / nxr@1.30
src/usr.bin/xlint/lint1/ckctype.c@1.11 / diff / nxr@1.11
src/usr.bin/xlint/lint1/ckgetopt.c@1.26 / diff / nxr@1.26
src/usr.bin/xlint/lint1/cksnprintb.c@1.9 / diff / nxr@1.9
src/usr.bin/xlint/lint1/debug.c@1.73 / diff / nxr@1.73
src/usr.bin/xlint/lint1/emit1.c@1.92 / diff / nxr@1.92
src/usr.bin/xlint/lint1/func.c@1.184 / diff / nxr@1.184
src/usr.bin/xlint/lint1/init.c@1.263 / diff / nxr@1.263
src/usr.bin/xlint/lint1/lint1.h@1.221 / diff / nxr@1.221
src/usr.bin/xlint/lint1/tree.c@1.612 / diff / nxr@1.612
lint: inline accessor macros for tnode_t
MAIN commitmail json YAML
src/usr.bin/xlint/common/tyname.c@1.62
/
diff
/
nxr@1.62
src/usr.bin/xlint/lint1/debug.c@1.72 / diff / nxr@1.72
src/usr.bin/xlint/lint1/decl.c@1.396 / diff / nxr@1.396
src/usr.bin/xlint/lint1/emit1.c@1.91 / diff / nxr@1.91
src/usr.bin/xlint/lint1/func.c@1.183 / diff / nxr@1.183
src/usr.bin/xlint/lint1/init.c@1.262 / diff / nxr@1.262
src/usr.bin/xlint/lint1/lint1.h@1.220 / diff / nxr@1.220
src/usr.bin/xlint/lint1/tree.c@1.611 / diff / nxr@1.611
src/usr.bin/xlint/lint1/debug.c@1.72 / diff / nxr@1.72
src/usr.bin/xlint/lint1/decl.c@1.396 / diff / nxr@1.396
src/usr.bin/xlint/lint1/emit1.c@1.91 / diff / nxr@1.91
src/usr.bin/xlint/lint1/func.c@1.183 / diff / nxr@1.183
src/usr.bin/xlint/lint1/init.c@1.262 / diff / nxr@1.262
src/usr.bin/xlint/lint1/lint1.h@1.220 / diff / nxr@1.220
src/usr.bin/xlint/lint1/tree.c@1.611 / diff / nxr@1.611
lint: inline accessor macros for type_t
MAIN commitmail json YAML
lint: clean up comments, use typedefs
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/func.c@1.182
/
diff
/
nxr@1.182
src/usr.bin/xlint/lint1/lint1.h@1.218 / diff / nxr@1.218
src/usr.bin/xlint/lint1/lint1.h@1.218 / diff / nxr@1.218
lint: internally store case label values in order of appearance
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/cksnprintb.c@1.8
/
diff
/
nxr@1.8
src/usr.bin/xlint/lint1/lint1.h@1.217 / diff / nxr@1.217
src/usr.bin/xlint/lint1/tree.c@1.610 / diff / nxr@1.610
src/usr.bin/xlint/lint1/lint1.h@1.217 / diff / nxr@1.217
src/usr.bin/xlint/lint1/tree.c@1.610 / diff / nxr@1.610
lint: remove unneeded checks for left and right operands
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/cgram.y@1.490
/
diff
/
nxr@1.490
src/usr.bin/xlint/lint1/decl.c@1.395 / diff / nxr@1.395
src/usr.bin/xlint/lint1/externs1.h@1.219 / diff / nxr@1.219
src/usr.bin/xlint/lint1/lint1.h@1.216 / diff / nxr@1.216
src/usr.bin/xlint/lint1/decl.c@1.395 / diff / nxr@1.395
src/usr.bin/xlint/lint1/externs1.h@1.219 / diff / nxr@1.219
src/usr.bin/xlint/lint1/lint1.h@1.216 / diff / nxr@1.216
lint: use fewer struct keywords
MAIN commitmail json YAML
postinstall: fix endless loop (since 2024-03-07)
MAIN commitmail json YAML
src/sys/arch/x86/include/specialreg.h@1.210
/
diff
/
nxr@1.210
src/usr.sbin/cpuctl/arch/i386.c@1.144 / diff / nxr@1.144
src/usr.sbin/cpuctl/arch/i386.c@1.144 / diff / nxr@1.144
cpuctl: fix i386 bit descriptions for CPUID_SEF_FLAGS1
warning: non-printing character '\31' in description
'BUS_LOCK_DETECT""b\31' [363]
warning: non-printing character '\31' in description
'BUS_LOCK_DETECT""b\31' [363]
MAIN commitmail json YAML
ifconfig: fix agr status
Previously, when the interface was collecting, its status was reported
as '<COLLECTING,DISTRIBUTING>', even when it was not distributing.
sbin/ifconfig/agr.c(170): warning: 'b\0DISTRIBUTING\0' overlaps earlier
'b\0COLLECTING\0' on bit 0 [376]
Previously, when the interface was collecting, its status was reported
as '<COLLECTING,DISTRIBUTING>', even when it was not distributing.
sbin/ifconfig/agr.c(170): warning: 'b\0DISTRIBUTING\0' overlaps earlier
'b\0COLLECTING\0' on bit 0 [376]
MAIN commitmail json YAML
src/usr.bin/make/unit-tests/var-scope-local.exp@1.9
/
diff
/
nxr@1.9
src/usr.bin/make/unit-tests/var-scope-local.mk@1.11 / diff / nxr@1.11
src/usr.bin/make/unit-tests/var-scope-local.mk@1.11 / diff / nxr@1.11
tests/make: clean up test for local scope variables
Use the same style of quotes for both kinds of variables. To make the
variable values more easily comparable, write them to a single line.
Add the output to the 'expect' lines.
Use the same style of quotes for both kinds of variables. To make the
variable values more easily comparable, write them to a single line.
Add the output to the 'expect' lines.
MAIN commitmail json YAML
snprintb: shrink code size, both in source and binary
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.42
/
diff
/
nxr@1.42
src/tests/lib/libutil/t_snprintb.c@1.30 / diff / nxr@1.30
src/tests/lib/libutil/t_snprintb.c@1.30 / diff / nxr@1.30
snprintb: error out on unknown new-style formatting directive
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_363.c@1.4
/
diff
/
nxr@1.4
src/usr.bin/xlint/lint1/ckgetopt.c@1.25 / diff / nxr@1.25
src/usr.bin/xlint/lint1/cksnprintb.c@1.7 / diff / nxr@1.7
src/usr.bin/xlint/lint1/emit1.c@1.90 / diff / nxr@1.90
src/usr.bin/xlint/lint1/init.c@1.261 / diff / nxr@1.261
src/usr.bin/xlint/lint1/lex.c@1.222 / diff / nxr@1.222
src/usr.bin/xlint/lint1/lint1.h@1.215 / diff / nxr@1.215
src/usr.bin/xlint/lint1/tree.c@1.609 / diff / nxr@1.609
src/usr.bin/xlint/lint1/ckgetopt.c@1.25 / diff / nxr@1.25
src/usr.bin/xlint/lint1/cksnprintb.c@1.7 / diff / nxr@1.7
src/usr.bin/xlint/lint1/emit1.c@1.90 / diff / nxr@1.90
src/usr.bin/xlint/lint1/init.c@1.261 / diff / nxr@1.261
src/usr.bin/xlint/lint1/lex.c@1.222 / diff / nxr@1.222
src/usr.bin/xlint/lint1/lint1.h@1.215 / diff / nxr@1.215
src/usr.bin/xlint/lint1/tree.c@1.609 / diff / nxr@1.609
lint: clean up string parsing and snprintb check
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_358.c@1.2
/
diff
/
nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_362.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_363.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_372.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_373.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_374.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_377.c@1.3 / diff / nxr@1.3
src/usr.bin/xlint/lint1/cksnprintb.c@1.6 / diff / nxr@1.6
src/usr.bin/xlint/lint1/err.c@1.231 / diff / nxr@1.231
src/tests/usr.bin/xlint/lint1/msg_362.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_363.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_372.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_373.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_374.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_377.c@1.3 / diff / nxr@1.3
src/usr.bin/xlint/lint1/cksnprintb.c@1.6 / diff / nxr@1.6
src/usr.bin/xlint/lint1/err.c@1.231 / diff / nxr@1.231
lint: warn about escaped snprintb directive
Repurpose message 362, as the previous version was redundant since null
bytes in old-style formats are already covered by message 371 (bit
position out of range) and 377 (redundant '\0' at the end).
Repurpose message 362, as the previous version was redundant since null
bytes in old-style formats are already covered by message 371 (bit
position out of range) and 377 (redundant '\0' at the end).
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_363.c@1.2
/
diff
/
nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_364.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_365.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_366.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_367.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_374.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_377.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/cksnprintb.c@1.5 / diff / nxr@1.5
src/usr.bin/xlint/lint1/err.c@1.230 / diff / nxr@1.230
src/tests/usr.bin/xlint/lint1/msg_364.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_365.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_366.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_367.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_374.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_377.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/cksnprintb.c@1.5 / diff / nxr@1.5
src/usr.bin/xlint/lint1/err.c@1.230 / diff / nxr@1.230
lint: fix warning about "empty" single-letter snprintb descriptions
MAIN commitmail json YAML
src/distrib/sets/lists/tests/mi@1.1309
/
diff
/
nxr@1.1309
src/tests/usr.bin/xlint/lint1/msg_360.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_361.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_366.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_374.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_375.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_376.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_377.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_378.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.18 / diff / nxr@1.18
src/usr.bin/xlint/lint1/cksnprintb.c@1.4 / diff / nxr@1.4
src/usr.bin/xlint/lint1/err.c@1.229 / diff / nxr@1.229
src/usr.bin/xlint/lint1/externs1.h@1.218 / diff / nxr@1.218
src/usr.bin/xlint/lint1/tree.c@1.608 / diff / nxr@1.608
src/tests/usr.bin/xlint/lint1/msg_360.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_361.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_366.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_374.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_375.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_376.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_377.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_378.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.18 / diff / nxr@1.18
src/usr.bin/xlint/lint1/cksnprintb.c@1.4 / diff / nxr@1.4
src/usr.bin/xlint/lint1/err.c@1.229 / diff / nxr@1.229
src/usr.bin/xlint/lint1/externs1.h@1.218 / diff / nxr@1.218
src/usr.bin/xlint/lint1/tree.c@1.608 / diff / nxr@1.608
lint: check for unreachable bits and fields in snprintb formats
While here, clean up a few existing checks.
While here, clean up a few existing checks.
MAIN commitmail json YAML
src/distrib/sets/lists/tests/mi@1.1308
/
diff
/
nxr@1.1308
src/tests/usr.bin/xlint/lint1/msg_369.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_370.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_372.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_373.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_375.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_376.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.17 / diff / nxr@1.17
src/usr.bin/xlint/lint1/cksnprintb.c@1.3 / diff / nxr@1.3
src/usr.bin/xlint/lint1/err.c@1.228 / diff / nxr@1.228
src/tests/usr.bin/xlint/lint1/msg_369.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_370.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_372.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_373.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_375.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_376.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/t_usage.sh@1.17 / diff / nxr@1.17
src/usr.bin/xlint/lint1/cksnprintb.c@1.3 / diff / nxr@1.3
src/usr.bin/xlint/lint1/err.c@1.228 / diff / nxr@1.228
lint: check snprintb formats for overlapping bits and fields
MAIN commitmail json YAML
src/usr.bin/xlint/common/lint.h@1.49
/
diff
/
nxr@1.49
src/usr.bin/xlint/lint1/decl.c@1.394 / diff / nxr@1.394
src/usr.bin/xlint/lint1/emit1.c@1.89 / diff / nxr@1.89
src/usr.bin/xlint/lint1/err.c@1.227 / diff / nxr@1.227
src/usr.bin/xlint/lint1/lex.c@1.221 / diff / nxr@1.221
src/usr.bin/xlint/lint2/chk.c@1.66 / diff / nxr@1.66
src/usr.bin/xlint/lint2/emit2.c@1.38 / diff / nxr@1.38
src/usr.bin/xlint/lint2/read.c@1.91 / diff / nxr@1.91
src/usr.bin/xlint/xlint/xlint.c@1.123 / diff / nxr@1.123
src/usr.bin/xlint/lint1/decl.c@1.394 / diff / nxr@1.394
src/usr.bin/xlint/lint1/emit1.c@1.89 / diff / nxr@1.89
src/usr.bin/xlint/lint1/err.c@1.227 / diff / nxr@1.227
src/usr.bin/xlint/lint1/lex.c@1.221 / diff / nxr@1.221
src/usr.bin/xlint/lint2/chk.c@1.66 / diff / nxr@1.66
src/usr.bin/xlint/lint2/emit2.c@1.38 / diff / nxr@1.38
src/usr.bin/xlint/lint2/read.c@1.91 / diff / nxr@1.91
src/usr.bin/xlint/xlint/xlint.c@1.123 / diff / nxr@1.123
lint: remove custom wrappers around <ctype.h> functions
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/ckgetopt.c@1.24
/
diff
/
nxr@1.24
src/usr.bin/xlint/lint1/cksnprintb.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/emit1.c@1.88 / diff / nxr@1.88
src/usr.bin/xlint/lint1/init.c@1.260 / diff / nxr@1.260
src/usr.bin/xlint/lint1/lex.c@1.220 / diff / nxr@1.220
src/usr.bin/xlint/lint1/tree.c@1.607 / diff / nxr@1.607
src/usr.bin/xlint/lint1/cksnprintb.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/emit1.c@1.88 / diff / nxr@1.88
src/usr.bin/xlint/lint1/init.c@1.260 / diff / nxr@1.260
src/usr.bin/xlint/lint1/lex.c@1.220 / diff / nxr@1.220
src/usr.bin/xlint/lint1/tree.c@1.607 / diff / nxr@1.607
lint: fix misleading initializer for string iterator
The field 'start' marks the start of the previous matching character,
not the current iterator position.
No binary change.
The field 'start' marks the start of the previous matching character,
not the current iterator position.
No binary change.
MAIN commitmail json YAML
lint: test format strings from snprintb calls
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct. Provide some assistance in
catching the most common mistakes.
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct. Provide some assistance in
catching the most common mistakes.
MAIN commitmail json YAML
src/distrib/sets/lists/tests/mi@1.1307
/
diff
/
nxr@1.1307
src/tests/usr.bin/xlint/lint1/msg_357.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_358.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_359.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_360.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_361.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_362.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_363.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_364.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_365.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_366.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_367.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_368.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_369.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_370.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_371.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_372.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_373.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_374.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_375.c@1.1 / diff / nxr@1.1
:
(more 5 files)
src/tests/usr.bin/xlint/lint1/msg_357.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_358.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_359.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_360.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_361.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_362.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_363.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_364.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_365.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_366.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_367.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_368.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_369.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_370.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_371.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_372.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_373.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_374.c@1.1 / diff / nxr@1.1
src/tests/usr.bin/xlint/lint1/msg_375.c@1.1 / diff / nxr@1.1
:
(more 5 files)
lint: test format strings from snprintb calls
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct. Provide some assistance in
catching the most common mistakes.
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct. Provide some assistance in
catching the most common mistakes.
MAIN commitmail json YAML
make: fix type mismatch in lint's strict bool mode (since today)
MAIN commitmail json YAML
make: remove test variant for NO_REGEX
The compile-time toggle was removed in var.c 1.1099 from 2024-02-07.
The compile-time toggle was removed in var.c 1.1099 from 2024-02-07.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/msg_348.c@1.10
/
diff
/
nxr@1.10
src/tests/usr.bin/xlint/lint1/msg_349.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_350.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_351.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/msg_352.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_353.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_354.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_355.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_356.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/check-msgs.lua@1.22 / diff / nxr@1.22
src/tests/usr.bin/xlint/lint1/msg_349.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_350.c@1.4 / diff / nxr@1.4
src/tests/usr.bin/xlint/lint1/msg_351.c@1.8 / diff / nxr@1.8
src/tests/usr.bin/xlint/lint1/msg_352.c@1.3 / diff / nxr@1.3
src/tests/usr.bin/xlint/lint1/msg_353.c@1.5 / diff / nxr@1.5
src/tests/usr.bin/xlint/lint1/msg_354.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_355.c@1.2 / diff / nxr@1.2
src/tests/usr.bin/xlint/lint1/msg_356.c@1.2 / diff / nxr@1.2
src/usr.bin/xlint/lint1/check-msgs.lua@1.22 / diff / nxr@1.22
tests/lint: remove redundant documentation
MAIN commitmail json YAML
lint: fix type error in strict bool mode (since yesterday)
MAIN commitmail json YAML
lint1: remove redundant type table for integer constant suffixes
MAIN commitmail json YAML
snprintb.3: fix typo
MAIN commitmail json YAML
parsedate.y: remove outdated comment
The number of shift/reduce conflicts has grown to 16.
The number of shift/reduce conflicts has grown to 16.
MAIN commitmail json YAML
tests/snprintb: clean up tests
Always write the value to be formatted in hexadecimal, to make it easily
distinguishable from the buffer size and maximum line length.
Use consistent wording in the comments of the test cases. Be stricter
about mistakes in a format.
Fix some wrong numbers in the snprintb_m tests for limited line length.
Always write the value to be formatted in hexadecimal, to make it easily
distinguishable from the buffer size and maximum line length.
Use consistent wording in the comments of the test cases. Be stricter
about mistakes in a format.
Fix some wrong numbers in the snprintb_m tests for limited line length.
MAIN commitmail json YAML
snprintb: clean up
Use consistent data types for buffer positions and lengths, to avoid
type casts.
Use consistent data types for buffer positions and lengths, to avoid
type casts.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.40
/
diff
/
nxr@1.40
src/tests/lib/libutil/t_snprintb.c@1.28 / diff / nxr@1.28
src/tests/lib/libutil/t_snprintb.c@1.28 / diff / nxr@1.28
snprintb: allow non-ASCII descriptions on all platforms
Previously, these descriptions were only allowed on platforms where
plain 'char' is unsigned. On platforms where plain 'char' is signed,
they invoked undefined behavior or terminated the output early.
Previously, these descriptions were only allowed on platforms where
plain 'char' is unsigned. On platforms where plain 'char' is signed,
they invoked undefined behavior or terminated the output early.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.39
/
diff
/
nxr@1.39
src/lib/libutil/snprintb.3@1.35 / diff / nxr@1.35
src/tests/lib/libutil/t_snprintb.c@1.27 / diff / nxr@1.27
src/lib/libutil/snprintb.3@1.35 / diff / nxr@1.35
src/tests/lib/libutil/t_snprintb.c@1.27 / diff / nxr@1.27
snprintb: always null-terminate output
Always null-terminate the output in the buffer, even in error cases. The
wording in the manual page has been promising this since 2008. For
snprintb_m, ensure that the output is terminated with two null
characters, to gracefully handle situations in which the caller does not
check whether snprintb returned an error.
If the buffer size is zero, allow the buffer to be a null pointer,
analogous to snprintf.
Fix an out-of-bounds memory read if the bitfmt ends with a '*' directive
(since today).
In the tests, merge the helper functions for snprintb, snprintb_m, as
they were similar enough.
Fix a few 'line_max exceeded' tests, ensuring that they output a '#'
marker, and that the 'complete' tests don't.
Always null-terminate the output in the buffer, even in error cases. The
wording in the manual page has been promising this since 2008. For
snprintb_m, ensure that the output is terminated with two null
characters, to gracefully handle situations in which the caller does not
check whether snprintb returned an error.
If the buffer size is zero, allow the buffer to be a null pointer,
analogous to snprintf.
Fix an out-of-bounds memory read if the bitfmt ends with a '*' directive
(since today).
In the tests, merge the helper functions for snprintb, snprintb_m, as
they were similar enough.
Fix a few 'line_max exceeded' tests, ensuring that they output a '#'
marker, and that the 'complete' tests don't.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.38
/
diff
/
nxr@1.38
src/lib/libutil/snprintb.3@1.34 / diff / nxr@1.34
src/tests/lib/libutil/t_snprintb.c@1.26 / diff / nxr@1.26
src/lib/libutil/snprintb.3@1.34 / diff / nxr@1.34
src/tests/lib/libutil/t_snprintb.c@1.26 / diff / nxr@1.26
snprintb: error out on out-of-bounds bit shifts
Previously, these invoked undefined behavior, now they lead to an early
return. An example of out-of-bounds bit number is in SCZ_PCICTRL_BITS.
Bit fields that extend beyond the msb are still allowed.
Allow 'f' and 'F' to have fields that are 64 bits wide. This only makes
sense when the field starts at bit 0.
Remove the unused 'val_len', it was only needed before snprintb.c 1.20.
Previously, these invoked undefined behavior, now they lead to an early
return. An example of out-of-bounds bit number is in SCZ_PCICTRL_BITS.
Bit fields that extend beyond the msb are still allowed.
Allow 'f' and 'F' to have fields that are 64 bits wide. This only makes
sense when the field starts at bit 0.
Remove the unused 'val_len', it was only needed before snprintb.c 1.20.
MAIN commitmail json YAML
tests/snprintb: test '=' and '*' directives that can never match
MAIN commitmail json YAML
snprintb.3: sync examples with reality
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.37
/
diff
/
nxr@1.37
src/tests/lib/libutil/t_snprintb.c@1.24 / diff / nxr@1.24
src/tests/lib/libutil/t_snprintb.c@1.24 / diff / nxr@1.24
snprintb_m: limit length of generated strings
The manual page promises that the 'max' argument limits the length of
the generated strings, so don't generate any strings that are longer
than that limit. Mark incomplete strings with a trailing '#' to make
them easily recognizable.
The manual page promises that the 'max' argument limits the length of
the generated strings, so don't generate any strings that are longer
than that limit. Mark incomplete strings with a trailing '#' to make
them easily recognizable.
MAIN commitmail json YAML
tests/snprintb: fix out-of-bounds memory read (since 2024-02-16)
Before t_snprintb.c 1.20, the buffer size was required to be greater
than zero. Allowing the buffer size to be zero led to buf[-1] being
checked. On amd64, that byte happened to be 0, on i386 it didn't.
Fixes PR lib/57951.
Before t_snprintb.c 1.20, the buffer size was required to be greater
than zero. Allowing the buffer size to be zero led to buf[-1] being
checked. On amd64, that byte happened to be 0, on i386 it didn't.
Fixes PR lib/57951.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.36
/
diff
/
nxr@1.36
src/tests/lib/libutil/t_snprintb.c@1.22 / diff / nxr@1.22
src/tests/lib/libutil/t_snprintb.c@1.22 / diff / nxr@1.22
snprintb: fix how named bit-fields are split into multiple lines
MAIN commitmail json YAML
tests/snprintb: add more tests, especially for snprintb_m
MAIN commitmail json YAML
mman.h: fix snprintb description for alignment 2^60
MAIN commitmail json YAML
snprintb: convert macros to local functions
Let the compiler decide whether to inline the functions; allow stepping
through the code in a debugger.
Let the compiler decide whether to inline the functions; allow stepping
through the code in a debugger.
MAIN commitmail json YAML
snprintb: do not modify bufsize when producing multiple lines
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.33
/
diff
/
nxr@1.33
src/tests/lib/libutil/t_snprintb.c@1.20 / diff / nxr@1.20
src/tests/lib/libutil/t_snprintb.c@1.20 / diff / nxr@1.20
snprintb: eliminate two local variables, allow zero-size buffer
Like snprintf, the buffer size may be zero. Unlike snprintf, the buffer
must not be NULL.
Like snprintf, the buffer size may be zero. Unlike snprintf, the buffer
must not be NULL.
MAIN commitmail json YAML
snprintb: use size_t for buffer sizes and positions
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.31
/
diff
/
nxr@1.31
src/tests/lib/libutil/t_snprintb.c@1.19 / diff / nxr@1.19
src/tests/lib/libutil/t_snprintb.c@1.19 / diff / nxr@1.19
snprintb: fix integer overflow when writing past a small buffer
Previously, snprintb returned -1 in this case, assuming that the
snprintf used in FMTSTR validates against an overly large buffer size.
Previously, snprintb returned -1 in this case, assuming that the
snprintf used in FMTSTR validates against an overly large buffer size.
MAIN commitmail json YAML
snprintb: use unsigned integers for parsing the bitfmt
MAIN commitmail json YAML
tests/snprintb: fix test for 8-bit field value
The previous version tested the behavior on a platform with signed
'char' before the portability fix.
The previous version tested the behavior on a platform with signed
'char' before the portability fix.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.29
/
diff
/
nxr@1.29
src/tests/lib/libutil/t_snprintb.c@1.17 / diff / nxr@1.17
src/tests/lib/libutil/t_snprintb.c@1.17 / diff / nxr@1.17
snprintb: fix '=' and ':' for 8-bit values on platforms with signed char
Previously, '=' and ':' worked only on platforms where plain 'char' is
unsigned. On platforms where plain 'char' is signed, only 7-bit values
worked.
Previously, '=' and ':' worked only on platforms where plain 'char' is
unsigned. On platforms where plain 'char' is signed, only 7-bit values
worked.
MAIN commitmail json YAML
snprintb: eliminate a few local variables
MAIN commitmail json YAML
snprintb: rename local variables
The single-letter variables 't', 's', 'l' and 'c' were too hard to
decipher.
The variable 'f_len' was used for two independent purposes.
Use a narrow scope for some variables, to avoid having to keep track of
22 individual variables at the same time.
No binary change.
The single-letter variables 't', 's', 'l' and 'c' were too hard to
decipher.
The variable 'f_len' was used for two independent purposes.
Use a narrow scope for some variables, to avoid having to keep track of
22 individual variables at the same time.
No binary change.
MAIN commitmail json YAML
snprintb: clean up
Remove redundant parentheses and casts.
Indent statement-like macros consistently, use separate lines for each
statement, add parentheses to macro definitions.
Remove CONSTCOND comments as lint doesn't need them anymore.
No binary change.
Remove redundant parentheses and casts.
Indent statement-like macros consistently, use separate lines for each
statement, add parentheses to macro definitions.
Remove CONSTCOND comments as lint doesn't need them anymore.
No binary change.
MAIN commitmail json YAML
tests/snprintb: clean up existing tests, add more tests
Due to the check that any bytes beyond the expected output must be
unmodified, there's no need anymore to explicitly write the "ZZZ" at the
end of the expected output. While here, remove the redundant trailing
"\0".
Add more tests to cover possible situations where an out-of-bounds write
may have occurred. In some cases, the line length specified in
snprintb_m is exceeded.
Due to the check that any bytes beyond the expected output must be
unmodified, there's no need anymore to explicitly write the "ZZZ" at the
end of the expected output. While here, remove the redundant trailing
"\0".
Add more tests to cover possible situations where an out-of-bounds write
may have occurred. In some cases, the line length specified in
snprintb_m is exceeded.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.25
/
diff
/
nxr@1.25
src/tests/lib/libutil/t_snprintb.c@1.15 / diff / nxr@1.15
src/tests/lib/libutil/t_snprintb.c@1.15 / diff / nxr@1.15
snprintb: fix string termination (since today)
In the previous commit, I had accidentally only run the tests for
snprintb_m but not those for snprintb, thereby missing a newly
introduced bug that would not null-terminate the resulting strings.
Add more tests to cover similar situations in which the buffer is too
small to contain the complete output.
In the previous commit, I had accidentally only run the tests for
snprintb_m but not those for snprintb, thereby missing a newly
introduced bug that would not null-terminate the resulting strings.
Add more tests to cover similar situations in which the buffer is too
small to contain the complete output.
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.24
/
diff
/
nxr@1.24
src/lib/libutil/snprintb.3@1.31 / diff / nxr@1.31
src/lib/libutil/snprintb.3@1.31 / diff / nxr@1.31
snprintb: rename buflen to bufsize, following the wording in snprintf
MAIN commitmail json YAML
src/common/lib/libutil/snprintb.c@1.23
/
diff
/
nxr@1.23
src/tests/lib/libutil/t_snprintb.c@1.14 / diff / nxr@1.14
src/tests/lib/libutil/t_snprintb.c@1.14 / diff / nxr@1.14
snprintb: fix out-of-bounds write
MAIN commitmail json YAML
tests/libutil/snprintb_m: add tests for small line length
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/decl.c@1.393
/
diff
/
nxr@1.393
src/usr.bin/xlint/lint1/lex.c@1.217 / diff / nxr@1.217
src/usr.bin/xlint/lint1/tree.c@1.605 / diff / nxr@1.605
src/usr.bin/xlint/lint1/lex.c@1.217 / diff / nxr@1.217
src/usr.bin/xlint/lint1/tree.c@1.605 / diff / nxr@1.605
lint: clean up variable names, parameter order, comments
No functional change.
No functional change.
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/cgram.y@1.489
/
diff
/
nxr@1.489
src/usr.bin/xlint/lint1/decl.c@1.392 / diff / nxr@1.392
src/usr.bin/xlint/lint1/emit1.c@1.87 / diff / nxr@1.87
src/usr.bin/xlint/lint1/func.c@1.181 / diff / nxr@1.181
src/usr.bin/xlint/lint1/init.c@1.259 / diff / nxr@1.259
src/usr.bin/xlint/lint1/lex.c@1.216 / diff / nxr@1.216
src/usr.bin/xlint/lint1/tree.c@1.604 / diff / nxr@1.604
src/usr.bin/xlint/lint1/decl.c@1.392 / diff / nxr@1.392
src/usr.bin/xlint/lint1/emit1.c@1.87 / diff / nxr@1.87
src/usr.bin/xlint/lint1/func.c@1.181 / diff / nxr@1.181
src/usr.bin/xlint/lint1/init.c@1.259 / diff / nxr@1.259
src/usr.bin/xlint/lint1/lex.c@1.216 / diff / nxr@1.216
src/usr.bin/xlint/lint1/tree.c@1.604 / diff / nxr@1.604
lint: clean up redundant braces
No functional change.
No functional change.
MAIN commitmail json YAML
lint: clean up comments, add debug output for Bison
MAIN commitmail json YAML
tests/lint: sync test for integer constant type on ILP32 platforms
The test was broken since lex.c 1.214 from today.
The test was broken since lex.c 1.214 from today.
MAIN commitmail json YAML
lint: use consistent variable names, reduce code for reading a byte
No functional change.
No functional change.
MAIN commitmail json YAML
src/tests/usr.bin/xlint/lint1/platform_lp64_trad.c@1.4
/
diff
/
nxr@1.4
src/usr.bin/xlint/lint1/lex.c@1.214 / diff / nxr@1.214
src/usr.bin/xlint/lint1/lex.c@1.214 / diff / nxr@1.214
lint: unify rules for determining the type of an integer constant
Previously, in traditional C mode, large decimal numbers were treated as
unsigned, which disagreed with the book from 1978.
Previously, in traditional C mode, large decimal numbers were treated as
unsigned, which disagreed with the book from 1978.
MAIN commitmail json YAML
make: remove redundant comments
No functional change.
No functional change.
MAIN commitmail json YAML
src/usr.bin/make/arch.c@1.215
/
diff
/
nxr@1.215
src/usr.bin/make/config.h@1.29 / diff / nxr@1.29
src/usr.bin/make/main.c@1.610 / diff / nxr@1.610
src/usr.bin/make/parse.c@1.717 / diff / nxr@1.717
src/usr.bin/make/suff.c@1.378 / diff / nxr@1.378
src/usr.bin/make/var.c@1.1099 / diff / nxr@1.1099
src/usr.bin/make/config.h@1.29 / diff / nxr@1.29
src/usr.bin/make/main.c@1.610 / diff / nxr@1.610
src/usr.bin/make/parse.c@1.717 / diff / nxr@1.717
src/usr.bin/make/suff.c@1.378 / diff / nxr@1.378
src/usr.bin/make/var.c@1.1099 / diff / nxr@1.1099
make: remove unneeded conditional-compilation toggles
The toggles INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB,
GMAKEEXPORT and SUNSHCMD are no longer needed, they were unconditionally
set.
The toggle NO_REGEX was configurable from the command line, but
disabling it would result in various error messages about the unknown
':C' modifier.
OK sjg@.
The toggles INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB,
GMAKEEXPORT and SUNSHCMD are no longer needed, they were unconditionally
set.
The toggle NO_REGEX was configurable from the command line, but
disabling it would result in various error messages about the unknown
':C' modifier.
OK sjg@.
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/Makefile@1.103
/
diff
/
nxr@1.103
src/usr.bin/xlint/lint1/check-msgs.lua@1.21 / diff / nxr@1.21
src/usr.bin/xlint/lint1/err.c@1.225 / diff / nxr@1.225
src/usr.bin/xlint/lint1/makeman@1.9 / diff / nxr@1.9
src/usr.bin/xlint/lint1/check-msgs.lua@1.21 / diff / nxr@1.21
src/usr.bin/xlint/lint1/err.c@1.225 / diff / nxr@1.225
src/usr.bin/xlint/lint1/makeman@1.9 / diff / nxr@1.9
lint: tab-align message numbers in err.c
By replacing block comments with end-of-line comments, the comments take
up less space and thus no longer require to be indented by 6 spaces.
The messages and their comments are used in 3 places: the manual page
lint.7, the err-msgs.h header for debug mode, and check-msgs.lua to
verify that the comments above the message IDs correspond to the actual
messages.
No functional change.
By replacing block comments with end-of-line comments, the comments take
up less space and thus no longer require to be indented by 6 spaces.
The messages and their comments are used in 3 places: the manual page
lint.7, the err-msgs.h header for debug mode, and check-msgs.lua to
verify that the comments above the message IDs correspond to the actual
messages.
No functional change.
MAIN commitmail json YAML
lint.7: remove implementation details from message list
From a user's perspective, it's irrelevant whether a lint message is
generated using '%s' or '%.*s'; same for the integer widths, as they are
platform-dependent.
From a user's perspective, it's irrelevant whether a lint message is
generated using '%s' or '%.*s'; same for the integer widths, as they are
platform-dependent.
MAIN commitmail json YAML
src/usr.bin/xlint/lint1/README.md@1.15
/
diff
/
nxr@1.15
src/usr.bin/xlint/lint1/cgram.y@1.487 / diff / nxr@1.487
src/usr.bin/xlint/lint1/ckctype.c@1.10 / diff / nxr@1.10
src/usr.bin/xlint/lint1/ckgetopt.c@1.23 / diff / nxr@1.23
src/usr.bin/xlint/lint1/debug.c@1.71 / diff / nxr@1.71
src/usr.bin/xlint/lint1/emit1.c@1.86 / diff / nxr@1.86
src/usr.bin/xlint/lint1/externs1.h@1.216 / diff / nxr@1.216
src/usr.bin/xlint/lint1/lint1.h@1.214 / diff / nxr@1.214
src/usr.bin/xlint/lint1/op.h@1.27 / diff / nxr@1.27
src/usr.bin/xlint/lint1/oper.c@1.15 / diff / nxr@1.15
src/usr.bin/xlint/lint1/tree.c@1.603 / diff / nxr@1.603
src/usr.bin/xlint/lint1/cgram.y@1.487 / diff / nxr@1.487
src/usr.bin/xlint/lint1/ckctype.c@1.10 / diff / nxr@1.10
src/usr.bin/xlint/lint1/ckgetopt.c@1.23 / diff / nxr@1.23
src/usr.bin/xlint/lint1/debug.c@1.71 / diff / nxr@1.71
src/usr.bin/xlint/lint1/emit1.c@1.86 / diff / nxr@1.86
src/usr.bin/xlint/lint1/externs1.h@1.216 / diff / nxr@1.216
src/usr.bin/xlint/lint1/lint1.h@1.214 / diff / nxr@1.214
src/usr.bin/xlint/lint1/op.h@1.27 / diff / nxr@1.27
src/usr.bin/xlint/lint1/oper.c@1.15 / diff / nxr@1.15
src/usr.bin/xlint/lint1/tree.c@1.603 / diff / nxr@1.603
lint: make function call arguments directly accessible
Previously, the arguments of a function call expression were arranged in
a linear tree structure, from right to left. To allow easier access to
the arguments, store them in an array instead.
Previously, the arguments of a function call expression were arranged in
a linear tree structure, from right to left. To allow easier access to
the arguments, store them in an array instead.
MAIN commitmail json YAML
src/usr.bin/make/unit-tests/varmod-indirect.exp@1.27
/
diff
/
nxr@1.27
src/usr.bin/make/unit-tests/varmod-indirect.mk@1.18 / diff / nxr@1.18
src/usr.bin/make/var.c@1.1098 / diff / nxr@1.1098
src/usr.bin/make/unit-tests/varmod-indirect.mk@1.18 / diff / nxr@1.18
src/usr.bin/make/var.c@1.1098 / diff / nxr@1.1098
make: do not evaluate indirect modifiers in parse-only mode
Discovered by sjg.
Discovered by sjg.
MAIN commitmail json YAML
src/usr.bin/make/unit-tests/varmod-indirect.exp@1.26
/
diff
/
nxr@1.26
src/usr.bin/make/unit-tests/varmod-indirect.mk@1.17 / diff / nxr@1.17
src/usr.bin/make/var.c@1.1097 / diff / nxr@1.1097
src/usr.bin/make/unit-tests/varmod-indirect.mk@1.17 / diff / nxr@1.17
src/usr.bin/make/var.c@1.1097 / diff / nxr@1.1097
make: in parse-only mode, don't evaluate modifiers
Previously, the ':S', ':ts', ':tA' and ':from=to' modifiers were
evaluated in parse-only mode, unnecessarily. This is only noticeable
when an indirect modifier is evaluated in parse-only mode, which is
another bug that will be fixed in a follow-up commit.
Previously, the ':S', ':ts', ':tA' and ':from=to' modifiers were
evaluated in parse-only mode, unnecessarily. This is only noticeable
when an indirect modifier is evaluated in parse-only mode, which is
another bug that will be fixed in a follow-up commit.