Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Fix accidental buffer overflow... duhhhhh
Browse files Browse the repository at this point in the history
 On branch master
 Your branch is up-to-date with 'origin/master'.

 Changes to be committed:
	modified:   ../../src/verilog_ast.c
  • Loading branch information
ben-marshall committed Jul 13, 2016
1 parent 06e4c86 commit e33ad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/verilog_ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ ast_identifier ast_new_identifier(
){
ast_identifier tr = ast_calloc(1,sizeof(struct ast_identifier_t));

size_t length = strlen(identifier);
size_t length = strlen(identifier) + 1;
tr -> identifier = calloc(length, sizeof(char));
strcat(tr -> identifier, identifier);

Expand Down

0 comments on commit e33ad42

Please sign in to comment.