fwts: uefi: uefivarinfo: double free error

Bug #1372874 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Firmware Test Suite
Fix Released
High
Colin Ian King

Bug Description

Coverity Scan detected a double free introduced in fix 728cbed162d88306e5fb10623fb37b282e21f73f

** CID 1240201: Double free (USE_AFTER_FREE)
/src/uefi/uefivarinfo/uefivarinfo.c: 160 in do_checkvariables()

________________________________________________________________________________________________________
*** CID 1240201: Double free (USE_AFTER_FREE)
/src/uefi/uefivarinfo/uefivarinfo.c: 160 in do_checkvariables()
154 free(data);
155 return FWTS_ERROR;
156 }
157 }
158 }
159
>>> CID 1240201: Double free (USE_AFTER_FREE)
>>> Calling "free" frees pointer "data" which has already been freed.
160 free(data);
161
162 (*usedvarssize) += getdatasize;
163
164 };
165

Changed in fwts:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Colin Ian King (colin-king)
Revision history for this message
Colin Ian King (colin-king) wrote :
Changed in fwts:
status: In Progress → Fix Committed
Changed in fwts:
milestone: none → 14.09.00
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.