[PATCH v10 11/28] bfd: parse Object Attributes v2's section in input object files
Jan Beulich
jbeulich@suse.com
Tue Dec 9 16:51:28 GMT 2025
More information about the Binutils mailing list
Tue Dec 9 16:51:28 GMT 2025
- Previous message (by thread): [PATCH v10 09/28] readelf: dump Object Attributes v2
- Next message (by thread): [PATCH v10 11/28] bfd: parse Object Attributes v2's section in input object files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 20.11.2025 18:59, Matthieu Longo wrote:
> +static int
> +read_ntbs (bfd *abfd,
> + const bfd_byte *cursor,
> + const bfd_byte *end,
> + char **s)
> +{
> + *s = NULL;
> + const size_t MAX_STR_LEN = end - cursor; /* Including \0. */
> + const size_t s_len = strnlen ((const char *) cursor, MAX_STR_LEN);
> + if (s_len == MAX_STR_LEN)
> + {
> + bfd_set_error (bfd_error_malformed_archive);
> + _bfd_error_handler (_("%pB: error: NTBS value seems corrupted "
> + "(missing '\\0')"), abfd);
Repeating an earlier request, applicable also elsewhere in this patch (and
possibly in the series): Please no further arguments on the same line as
the continuation of an already-wrapped argument. Okay with this adjusted
throughout this patch.
Jan
- Previous message (by thread): [PATCH v10 09/28] readelf: dump Object Attributes v2
- Next message (by thread): [PATCH v10 11/28] bfd: parse Object Attributes v2's section in input object files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list