Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101990589
D46007.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
462 B
Referenced Files
None
Subscribers
None
D46007.diff
View Options
diff --git a/contrib/elftoolchain/libdwarf/libdwarf_init.c b/contrib/elftoolchain/libdwarf/libdwarf_init.c
--- a/contrib/elftoolchain/libdwarf/libdwarf_init.c
+++ b/contrib/elftoolchain/libdwarf/libdwarf_init.c
@@ -302,7 +302,7 @@
{
Dwarf_Debug dbg;
- if ((dbg = calloc(sizeof(struct _Dwarf_Debug), 1)) == NULL) {
+ if ((dbg = calloc(1, sizeof(struct _Dwarf_Debug))) == NULL) {
DWARF_SET_ERROR(dbg, error, DW_DLE_MEMORY);
return (DW_DLE_MEMORY);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 6:35 AM (11 h, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506185
Default Alt Text
D46007.diff (462 B)
Attached To
Mode
D46007: elftoolchain: Consistently use item count as the first argument to calloc
Attached
Detach File
Event Timeline
Log In to Comment