projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Made sure that every call to bfd_read, bfd_write, and bfd_seek
[deliverable/binutils-gdb.git]
/
bfd
/
libbfd.c
diff --git
a/bfd/libbfd.c
b/bfd/libbfd.c
index da3460b4886c7f63e2cdf9257cbdaaf0c1c5ac4a..93522d9cd3f5c0ab93e1fc070d8667569b87b7db 100644
(file)
--- a/
bfd/libbfd.c
+++ b/
bfd/libbfd.c
@@
-248,7
+248,8
@@
bfd_write_bigendian_4byte_int (abfd, i)
{
bfd_byte buffer[4];
bfd_putb32(i, buffer);
- bfd_write((PTR)buffer, 4, 1, abfd);
+ if (bfd_write((PTR)buffer, 4, 1, abfd) != 4)
+ abort ();
}
long
This page took
0.023926 seconds
and
4
git commands to generate.