2019-12-09 21:20 EST


View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002525FSSCPgraphicspublic2011-10-20 09:37
ReporterEchelon9 
Assigned ToEchelon9 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.6.14 
Summary0002525: Valgrind: Conditional jump or move depends on uninitialized value(s) - parse_ship_values()
DescriptionValgrind reports a memory management error caused by the following line:

sp->triggers = (queued_animation*)vm_realloc(sp->triggers, sizeof(queued_animation) * (sp->n_triggers + 1));

in ship.cpp
Additional Information==26993== Uninitialised value was created by a heap allocation
==26993== at 0x1EC5498: malloc (vg_replace_malloc.c:266)
==26993== by 0x29281: _vm_malloc(int, char*, int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x451321: _vm_realloc(void*, int, char*, int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x3D676B: parse_ship_values(ship_info*, bool, bool, bool) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x3D7751: parse_ship(char*, bool) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x3D9FAC: parse_shiptbl(char*) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x3DA29C: ship_init() (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x6A097: game_init() (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x6A360: game_main(char*) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x6A65F: SDL_main (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x3C18D: -[SDLMain applicationDidFinishLaunching:] (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==26993== by 0x22E3F48: __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0012894

Echelon9 (developer)

Fixed in r7920.
+Notes

-Issue History
Date Modified Username Field Change
2011-10-20 09:31 Echelon9 New Issue
2011-10-20 09:32 Echelon9 Status new => assigned
2011-10-20 09:32 Echelon9 Assigned To => Echelon9
2011-10-20 09:37 Echelon9 Note Added: 0012894
2011-10-20 09:37 Echelon9 Status assigned => resolved
2011-10-20 09:37 Echelon9 Fixed in Version => 3.6.14
2011-10-20 09:37 Echelon9 Resolution open => fixed
+Issue History