[Bug binutils/29879] Out of bound read at `case DST__K_RTNEND` handler in function `parse_module`

2022-12-12 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29879

Alan Modra  changed:

   What|Removed |Added

   Target Milestone|--- |2.40
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29879] Out of bound read at `case DST__K_RTNEND` handler in function `parse_module`

2022-12-12 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29879

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=77c225bdeb410cf60da804879ad41622f5f1aa44

commit 77c225bdeb410cf60da804879ad41622f5f1aa44
Author: Alan Modra 
Date:   Mon Dec 12 18:28:49 2022 +1030

Lack of bounds checking in vms-alpha.c parse_module

PR 29873
PR 29874
PR 29875
PR 29876
PR 29877
PR 29878
PR 29879
PR 29880
PR 29881
PR 29882
PR 29883
PR 29884
PR 29885
PR 29886
PR 29887
PR 29888
PR 29889
PR 29890
PR 29891
* vms-alpha.c (parse_module): Make length param bfd_size_type.
Delete length == -1 checks.  Sanity check record_length.
Sanity check DST__K_MODBEG, DST__K_RTNBEG, DST__K_RTNEND lengths.
Sanity check DST__K_SOURCE and DST__K_LINE_NUM elements
before accessing.
(build_module_list): Pass dst_section size to parse_module.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29879] Out of bound read at `case DST__K_RTNEND` handler in function `parse_module`

2022-12-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29879

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2022-12-12
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.