History log of /freebsd-13.1/contrib/elftoolchain/nm/nm.c (Results 1 – 6 of 6)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0
# 052ad61b 30-Sep-2019 Mark Johnston <[email protected]>

Capsicumize nm(1).

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21107


# 8d3d7247 30-Sep-2019 Mark Johnston <[email protected]>

nm: Adjust argc and argv in get_opt().

This refactoring makes it slightly easier to capsicumize nm(1).

Discussed with: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation


Revision tags: release/11.3.0, release/12.0.0, release/11.2.0
# 48fc14c0 16-Mar-2018 Conrad Meyer <[email protected]>

elftoolchain nm(1): Initialize allocated memory before use

In out of memory scenarios (where one of these allocations failed but
other(s) did not), nm(1) could reference the uninitialized value of t

elftoolchain nm(1): Initialize allocated memory before use

In out of memory scenarios (where one of these allocations failed but
other(s) did not), nm(1) could reference the uninitialized value of these
allocations (undefined behavior).

Always initialize any successful allocations as the most expedient
resolution of the issue. However, I would encourage upstream elftoolchain
contributors to clean up the error path to just abort immediately, rather
than proceeding sloppily when one allocation fails.

Reported by: Coverity
Sponsored by: Dell EMC Isilon

show more ...


Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0
# 0b93a0b4 25-Feb-2015 Ed Maste <[email protected]>

nm: avoid crash in print_lineno if func->name is NULL

This can occur when DW_AT_specification is used to refer to another DIE
that provides the actual DW_AT_name string. For example:

< 3><0x0000008

nm: avoid crash in print_lineno if func->name is NULL

This can occur when DW_AT_specification is used to refer to another DIE
that provides the actual DW_AT_name string. For example:

< 3><0x00000086> DW_TAG_subprogram
DW_AT_name PrettyStackTraceEntry
...
< 1><0x00002cf4> DW_TAG_subprogram
DW_AT_specification <0x00000086>

We will need to add support for DW_AT_specification, but in the interim
we should not segfault.

Obtained from: Elftoolchain (r3170)
Sponsored by: The FreeBSD Foundation

show more ...


# 9a1048f7 08-Jan-2015 Ed Maste <[email protected]>

nm: Accept long option --extern-only for -g

Submitted by: jkim


# 50f69bfb 01-Dec-2014 Ed Maste <[email protected]>

Fix elftoolchain tools in-tree build

* make variables static
* add header for uint*_t typedefs