diff options
author | Thiemo Seufer <ths@networkno.de> | 2003-05-17 00:41:45 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2003-05-17 00:41:45 +0000 |
commit | e27e1b0417704128c57dcd0db5c73f2b12247d53 (patch) | |
tree | 43c09937840791bf6cd2bdcfbe7f4f126cd8ef7f /bfd/bfd.c | |
parent | 860a64520d65c74c96fa6cbcd197ba40f0fde36e (diff) | |
download | binutils-redhat-e27e1b0417704128c57dcd0db5c73f2b12247d53.tar.gz |
* bfd.c (_bfd_get_gp_value): Prevent illegal access for abfd null
pointers.
(_bfd_set_gp_value): Likewise.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -894,6 +894,8 @@ bfd_vma _bfd_get_gp_value (abfd) bfd *abfd; { + if (! abfd) + return 0; if (abfd->format != bfd_object) return 0; @@ -912,6 +914,8 @@ _bfd_set_gp_value (abfd, v) bfd *abfd; bfd_vma v; { + if (! abfd) + BFD_FAIL (); if (abfd->format != bfd_object) return; |