Skip to content

Commit

Permalink
buffer overrun.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Nov 17, 2023
1 parent 52c71f7 commit f24e8e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib_jtag_core/src/script/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,9 @@ char * arrayresize(char * array, int size, unsigned char c)
int cursize;
char * ptr;

if( size < 0 )
return array;

if(array)
{
if( array[0] == '0' && (array[1] == 'x' || array[1] == 'X') )
Expand Down

0 comments on commit f24e8e5

Please sign in to comment.