Skip to content

Commit

Permalink
Null pointer Dereference.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Nov 17, 2023
1 parent d24a7b3 commit cbe4a06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib_jtag_core/src/bsdl_parser/bsdl_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ void preprocess_line(char * line)
write_offset = 0;
number_of_spaces = 0;

if(!line)
return;

// first pass : remove extra blank
while( line[read_offset] )
{
Expand Down

0 comments on commit cbe4a06

Please sign in to comment.