View Issue Details

IDProjectCategoryView StatusLast Update
0003090FSSCPStandalone WebUIpublic2014-08-10 02:38
ReporterEchelon9 Assigned ToEchelon9  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.7.2 RC3 
Summary0003090: Valgrind: Conditional jump or move depends on uninitialised value(s) in webserverApiRequest()
DescriptionValgrind reports a number of conditional jumps based on uninitialised values created by stack allocation in webserverApiRequest()
Additional InformationOne example:

==2048== Conditional jump or move depends on uninitialised value(s)
==2048== at 0x10064006F: string_get (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x100642237: stream_get (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x10064134C: lex_get (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x100640859: lex_scan (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x1006400C0: parse_json (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x10063FBE8: json_loads (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x1003CA4AC: webserverApiRequest(mg_connection*, mg_request_info const*) (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x1003C8E24: webserverCallback(mg_event, mg_connection*) (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x10069C80B: call_user (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x10069F533: handle_request (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x10069ECC7: process_new_connection (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== by 0x10069E6D1: worker_thread (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
==2048== Uninitialised value was created by a stack allocation
==2048== at 0x1003C9814: webserverApiRequest(mg_connection*, mg_request_info const*) (in FS2_Open 3.7.1 (debug).app//Contents/MacOS/FS2_Open 3.7.1 (debug))
TagsNo tags attached.

Activities

Echelon9

2014-08-10 02:38

developer   ~0016193

Fix committed to trunk@10980.

Related Changesets

fs2open: trunk r10980

2014-08-09 23:07

Echelon9


Ported: N/A

Details Diff
Fix Mantis 3090: Valgrind: Conditional jump or move depends on uninitialised value(s) in webserverApiRequest() Affected Issues
0003090
mod - /trunk/fs2_open/code/network/stand_gui-unix.cpp Diff File

Issue History

Date Modified Username Field Change
2014-08-10 02:36 Echelon9 New Issue
2014-08-10 02:36 Echelon9 Status new => assigned
2014-08-10 02:36 Echelon9 Assigned To => Echelon9
2014-08-10 02:38 Echelon9 Changeset attached => fs2open trunk r10980
2014-08-10 02:38 Echelon9 Note Added: 0016193
2014-08-10 02:38 Echelon9 Status assigned => resolved
2014-08-10 02:38 Echelon9 Resolution open => fixed