projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
524b57e
)
Fix memory leak in ar if it encounters an invalid path whilst extracting files.
author
Nick Clifton
<nickc@redhat.com>
Tue, 4 Aug 2015 13:50:40 +0000
(14:50 +0100)
committer
Nick Clifton
<nickc@redhat.com>
Tue, 4 Aug 2015 13:50:40 +0000
(14:50 +0100)
* ar.c (extract_file): Free cbuf if the path is invalid.
binutils/ar.c
patch
|
blob
|
history
diff --git
a/binutils/ar.c
b/binutils/ar.c
index 94c79e21540e2241db80b3a5291df29d06da248d..2765dcc5f799627dcf268564684c8acaeb736072 100644
(file)
--- a/
binutils/ar.c
+++ b/
binutils/ar.c
@@
-1041,6
+1041,7
@@
extract_file (bfd *abfd)
{
non_fatal (_("illegal pathname found in archive member: %s"),
bfd_get_filename (abfd));
+ free (cbuf);
return;
}