Skip to content

Commit

Permalink
correct sprintf overflow issue #916
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bonani committed Apr 26, 2021
1 parent 78213aa commit ed6bd27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aseba/thymio-device-manager/flatbuffers_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inline tagged_detached_flatbuffer create_save_response(uint32_t request_id,const

std::string result_string;
for(auto i = 0 ; i < bytecode.size() ; i++){
char interm[4] = {0x0000};
char interm[5] = {0x00000};
if(i<4)
sprintf(interm,"%02x",bytecode[i]);
else
Expand Down

0 comments on commit ed6bd27

Please sign in to comment.