PR 29848
* vms-alpha.c (parse_module): Fix potential out of bounds memory
access.
+2022-12-05 Nick Clifton <nickc@redhat.com>
+
+ PR 29848
+ * vms-alpha.c (parse_module): Fix potential out of bounds memory
+ access.
+
2022-12-01 Nick Clifton <nickc@redhat.com>
PR 25202
return false;
module->line_table = curr_line;
- while (length == -1 || ptr < maxptr)
+ while (length == -1 || (ptr + 3) < maxptr)
{
/* The first byte is not counted in the recorded length. */
int rec_length = bfd_getl16 (ptr) + 1;