USNavalResearchLaboratory / mgen

Multi-Generator (MGEN) traffic generation tool
https://www.nrl.navy.mil/itd/ncs/products/mgen
Other
83 stars 25 forks source link

Fix one byte buffer overflow in `sizeText` #24

Closed sdshlanta closed 3 years ago

sdshlanta commented 3 years ago

sizeText could be overflown by one byte and write NULL byte of the string to jitterFraction. Solved by incrementing the size of sizeText to 257.