Fix potential arithmetic overflow in the linker's plugin handling code.
authorNick Clifton <nickc@redhat.com>
Tue, 3 May 2022 10:40:41 +0000 (11:40 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 3 May 2022 10:41:45 +0000 (11:41 +0100)
commit46465574a925062ba7dfa72f49ba5199d7a39fc3
treec076ede8e01796d3fe214ab8c6bd55e1336ca76c
parent4bb461e42c556fc9804937f70e3f2fc1534732d2
Fix potential arithmetic overflow in the linker's plugin handling code.

PR 29101
* libdep_plugin.c (get_libdeps): Check for overflow when computing
amount of memory to allocate.
ld/ChangeLog
ld/libdep_plugin.c