Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174198706
D16180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D16180.diff
View Options
Index: head/contrib/elftoolchain/elfcopy/sections.c
===================================================================
--- head/contrib/elftoolchain/elfcopy/sections.c
+++ head/contrib/elftoolchain/elfcopy/sections.c
@@ -716,13 +716,13 @@
#define COPYREL(REL, SZ) do { \
if (nrels == 0) { \
if ((REL##SZ = malloc(cap * \
- sizeof(Elf##SZ##_Rel))) == NULL) \
+ sizeof(*REL##SZ))) == NULL) \
err(EXIT_FAILURE, "malloc failed"); \
} \
if (nrels >= cap) { \
cap *= 2; \
if ((REL##SZ = realloc(REL##SZ, cap * \
- sizeof(Elf##SZ##_Rel))) == NULL) \
+ sizeof(*REL##SZ))) == NULL) \
err(EXIT_FAILURE, "realloc failed"); \
} \
REL##SZ[nrels].r_offset = REL.r_offset; \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 2, 7:46 AM (3 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40069441
Default Alt Text
D16180.diff (748 B)
Attached To
Mode
D16180: Make COPYREL() use the right sizes when allocating memory.
Attached
Detach File
Event Timeline
Log In to Comment