ELF Tool Chain/elftoolchain 4230trunk/tests/tet/libelf/tset/elf_getident getident.m4

libelf/testsuite: Fix a resource leak.

Detected by:    Coverity Scan
DeltaFile
+6-0trunk/tests/tet/libelf/tset/elf_getident/getident.m4
+6-01 files

ELF Tool Chain/elftoolchain 4229trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: Rework a Coverity directive.

Move the directive to just prior to the field assignment that
is being overwritten.
DeltaFile
+3-2trunk/tests/tet/libelf/tset/elf_update/update.m4
+3-21 files

ELF Tool Chain/elftoolchain 4228trunk/tests/tet/libelf/tset/common elfts.h

libelf/testsuite: Fix a potential file descriptor leak.

Detected by:    Coverity Scan
DeltaFile
+4-1trunk/tests/tet/libelf/tset/common/elfts.h
+4-11 files

ELF Tool Chain/elftoolchain 4227trunk/tests/tet/libelf/tset/gelf_xlate xlate.m4

libelf/testsuite: Avoid using a potentially uninitialized pointer value.

Detected by:    Coverity Scan
DeltaFile
+1-0trunk/tests/tet/libelf/tset/gelf_xlate/xlate.m4
+1-01 files

ELF Tool Chain/elftoolchain 4226trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: Turn off a Coverity Scan warning.

The repeated assignments that are being flagged by Coverity
are to be expected, given the way that the test functions
are being generated.
DeltaFile
+2-1trunk/tests/tet/libelf/tset/elf_update/update.m4
+2-11 files

ELF Tool Chain/elftoolchain 4225trunk/tests/tet/libelf/tset/elf_getarhdr getarhdr.m4, trunk/tests/tet/libelf/tset/elf_getarsym getarsym.m4

libelf/testsuite: Use arrays for test data.

This change allows the TS_OPEN_MEMORY() helper
macro to function as intended.

Detected by:    Coverity Scan
DeltaFile
+2-2trunk/tests/tet/libelf/tset/elf_next/next.m4
+1-1trunk/tests/tet/libelf/tset/elf_getarhdr/getarhdr.m4
+1-1trunk/tests/tet/libelf/tset/elf_getarsym/getarsym.m4
+1-1trunk/tests/tet/libelf/tset/elf_getscn/getscn.m4
+1-1trunk/tests/tet/libelf/tset/elf_getshnum/getshnum.m4
+1-1trunk/tests/tet/libelf/tset/elf_getshstrndx/getshstrndx.m4
+7-74 files not shown
+11-1110 files

ELF Tool Chain/elftoolchain 4224trunk/ld ld_ehframe.c

ld: Use the correct type in a sizeof().

Detected by:    Coverity Scan
DeltaFile
+2-1trunk/ld/ld_ehframe.c
+2-11 files

ELF Tool Chain/elftoolchain 4223trunk/tests/custom/ar/plugin teraser.c

ar/testsuite: Only pass legal file descriptor values to close().

Detected by:    Coverity Scan
DeltaFile
+2-1trunk/tests/custom/ar/plugin/teraser.c
+2-11 files

ELF Tool Chain/elftoolchain 4222trunk/tests/tet/libelf/tset/common elf_flag.m4

libelf/testsuite: Fix a resource leak.

Detected by: Coverity Scan
DeltaFile
+5-1trunk/tests/tet/libelf/tset/common/elf_flag.m4
+5-11 files

ELF Tool Chain/elftoolchain 4221trunk/tests/tet/libelf/tset/elf_begin begin.m4

libelf/testsuite: Fail a test correctly.

Detected by: Coverity Scan
DeltaFile
+4-2trunk/tests/tet/libelf/tset/elf_begin/begin.m4
+4-21 files

ELF Tool Chain/elftoolchain 4220trunk/tests/tet/libelf/tset/elf_getarhdr getarhdr.m4

libelf/testsuite: improve the readability of macro-expanded code.

This change removes superfluous semicolons and whitespace, but
does not otherwise change the generated text.
DeltaFile
+7-8trunk/tests/tet/libelf/tset/elf_getarhdr/getarhdr.m4
+7-81 files

ELF Tool Chain/elftoolchain 4219trunk/tests/tet/libelf/tset/elf_getarhdr getarhdr.m4

libelf/testsuite: Fix Elf descriptor leaks in generated code.

Detected by: Coverity Scan
DeltaFile
+2-0trunk/tests/tet/libelf/tset/elf_getarhdr/getarhdr.m4
+2-01 files

ELF Tool Chain/elftoolchain 4218trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: Free strings returned by a helper function.

Detected by: Coverity Scan
DeltaFile
+23-14trunk/tests/tet/libelf/tset/elf_update/update.m4
+23-141 files

ELF Tool Chain/elftoolchain 4217trunk/tests/tet/libelf/tset/common elfts.h

libelf/testsuite: Fix a resource leak in a helper macro.

Detected by: Coverity Scan
DeltaFile
+8-1trunk/tests/tet/libelf/tset/common/elfts.h
+8-11 files

ELF Tool Chain/elftoolchain 4216trunk/libelf elf_begin.3 libelf_open.c

libelf: Reject negative file descriptor values earlier in elf_begin().

This change allows us to avoid issuing system calls that
are guaranteed to fail.

Detected by: Coverity Scan
DeltaFile
+7-8trunk/libelf/elf_begin.3
+5-0trunk/libelf/libelf_open.c
+12-82 files

ELF Tool Chain/elftoolchain 4215trunk/tests/custom/elfcopy/plugin teraser.c

elfcopy/testsuite: Avoid using close() on negative values.

Detected by: Coverity Scan
DeltaFile
+4-2trunk/tests/custom/elfcopy/plugin/teraser.c
+4-21 files

ELF Tool Chain/elftoolchain 4214trunk/tests/tet/libelf/tset/common elfts-copy-file.c, trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: Avoid using close() on negative values.

Detected by: Coverity Scan
DeltaFile
+3-3trunk/tests/tet/libelf/tset/elf_update/update.m4
+2-2trunk/tests/tet/libelf/tset/common/elfts-copy-file.c
+5-52 files

ELF Tool Chain/elftoolchain 4213trunk/tests/tet/libelf/tset/common elfts-copy-file.c, trunk/tests/tet/libelf/tset/elf_begin begin.m4

libelf/testsuite: handle older implementations of mkstemp().

Explicitly set the process file mode creation mask before using
mkstemp() to create temporary files.

This change should improve security on systems with older
implementations of mkstemp() that do not create temporary files
with 'group' and 'other' access turned off by default.

Detected by: Coverity Scan
DeltaFile
+67-17trunk/tests/tet/libelf/tset/elf_cntl/cntl.m4
+15-2trunk/tests/tet/libelf/tset/common/elfts-copy-file.c
+7-3trunk/tests/tet/libelf/tset/elf_begin/begin.m4
+89-223 files

ELF Tool Chain/elftoolchain 4212trunk/tests/tet/libelf/tset/common elf_flag.m4, trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: handle unsigned enumeration specifiers better.

Per the C standard (section 6.7.2.2 "Enumeration specifiers"),
it is implementation-defined whether the underlying type of an
enumeration is signed or unsigned.  Enumeration constants
themselves are required to be of type 'int' (section 6.4.4.3
"Enumeration constants").

In compilation environments that use an unsigned enumeration
types, an expression like "Elf_Cmd c = ELF_C_NULL - 1" could
end up assigning a large positive unsigned value to "c", which
is not what is desired.

Detected by: Coverity Scan
DeltaFile
+1-1trunk/tests/tet/libelf/tset/common/elf_flag.m4
+1-1trunk/tests/tet/libelf/tset/elf_update/update.m4
+2-22 files

ELF Tool Chain/elftoolchain 4211trunk/tests/tet/libelf/tset/elf_next next.m4

libelf/testsuite: Replace an always-true condition with an assert().

Detected by: Coverity Scan
DeltaFile
+3-2trunk/tests/tet/libelf/tset/elf_next/next.m4
+3-21 files

ELF Tool Chain/elftoolchain 4210trunk/tests/tet/libelf/tset/elf_update update.m4

libelf/testsuite: Remove an unused variable.

Detected by: Coverity Scan
DeltaFile
+4-8trunk/tests/tet/libelf/tset/elf_update/update.m4
+4-81 files

ELF Tool Chain/elftoolchain 4209trunk/tests/tet/libelftc/tset/elftc_string_table string_table.m4

libelftc/testsuite: Fix potential NULL dereferences.

Reported by: Coverity Scan
DeltaFile
+10-8trunk/tests/tet/libelftc/tset/elftc_string_table/string_table.m4
+10-81 files

ELF Tool Chain/elftoolchain 4208trunk/tests/tet/libelf/tset/common xlate_c_template.c xlate_template.c, trunk/tests/tet/libelf/tset/gelf_xlate xlate.m4

tests/tet/libelf: Avoid a build-time filename collision.

This change prevents make(1) from overwriting a source file with
the content generated by an application of the ".m4.c" suffix
transformation rule.
DeltaFile
+1,824-0trunk/tests/tet/libelf/tset/common/xlate_c_template.c
+0-1,824trunk/tests/tet/libelf/tset/common/xlate_template.c
+2-2trunk/tests/tet/libelf/tset/gelf_xlate/xlate.m4
+1,826-1,8263 files

ELF Tool Chain/elftoolchain 4207trunk INSTALL

Catch up with r4035: update the path to the 'tet' subdirectory.
DeltaFile
+7-7trunk/INSTALL
+7-71 files

ELF Tool Chain/elftoolchain 4206trunk INSTALL

Update installation instructions for Ubuntu 24.04.
DeltaFile
+4-6trunk/INSTALL
+4-61 files

ELF Tool Chain/elftoolchain 4205trunk/common/sys elfconstants.m4

elfconstants: Reference the current location of the ELF specification.

Obtained from: the generic-abi list.
DeltaFile
+1-3trunk/common/sys/elfconstants.m4
+1-31 files

ELF Tool Chain/elftoolchain 4204trunk/common/sys elfconstants.m4

elfconstants: Add two new EM_* constants.

Obtained from: the generic-abi list.
DeltaFile
+4-0trunk/common/sys/elfconstants.m4
+4-01 files

ELF Tool Chain/elftoolchain 4203trunk/common/sys elfconstants.m4

elfconstants: Use unsigned literals for flags.

Use a consistent width for SHF_* literals, for improved
readability.

Submitted by: Christos Zoulas
DeltaFile
+21-21trunk/common/sys/elfconstants.m4
+21-211 files

ELF Tool Chain/elftoolchain 4202trunk/common/sys elfconstants.m4

elfconstants: (style) Use uppercase hexadecimal characters.

DeltaFile
+5-5trunk/common/sys/elfconstants.m4
+5-51 files

ELF Tool Chain/elftoolchain 4201trunk/mk elftoolchain.prog.mk

elftoolchain.prog.mk: Permit compilation when using MAKEOBJDIRPREFIX.
DeltaFile
+1-0trunk/mk/elftoolchain.prog.mk
+1-01 files