Skip to content

Commit

Permalink
Merge pull request martijnvanbrummelen#571 from PartialVolume/Fix_con…
Browse files Browse the repository at this point in the history
…ditional_jump_or_move_on_unitialised_value

Fix conditional jump on uninitialised value
  • Loading branch information
PartialVolume authored Apr 8, 2024
2 parents 2809580 + 81fc479 commit 9400ff5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hpa_dco.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ u64 nwipe_read_dco_real_max_sectors( char* device )
unsigned char buffer[LBA_SIZE]; // Received data block
unsigned char sense_buffer[SENSE_BUFFER_SIZE]; // Sense data

/* Zero the data block prior to use */
memset( buffer, 0, LBA_SIZE );

/* three characters represent one byte of sense data, i.e
* two characters and a space "01 AE 67"
*/
Expand Down

0 comments on commit 9400ff5

Please sign in to comment.