fwts: fwts_uefi.c: avoid possible stat/open race

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

Bug Description

fwts_uefi_get_variable_efivars_fs() does a stat and then an open, which Coverity Scan flagged up as a potential race. Instead, open and then fstat on the file descriptor.

Changed in fwts:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Colin King (colin-king)
Keng-Yu Lin (lexical)
Changed in fwts:
milestone: none → 13.09.00
Revision history for this message
Colin Ian King (colin-king) wrote :

Fix committed, commit b197960b924c4738e11e59de9d7897bb56ca1930

Changed in fwts:
status: In Progress → Fix Committed
Changed in fwts:
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.