gozfree / gear-lib

Gear-Lib, C library for IOT Embedded Multimedia and Network
MIT License
2.97k stars 805 forks source link

Use size of destination as third argument of strncpy() #96

Closed szsam closed 1 year ago

szsam commented 1 year ago

Calling 'strncpy' with the size of the source buffer as the third argument may result in a buffer overflow.