commit | 417747886c4aac46c96dd02b1a4ff8d8f2bba0a2 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Wed Jan 17 16:02:54 2024 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Mar 15 17:08:58 2024 -0400 |
tree | fb858bbdbeb205eb4cc95f5736fff8d022d7862a | |
parent | 4163ea02073e147269c268dda9522c54ee9f5b11 [diff] |
tests: sprintf: Avoid buffer overrun fwrite parameters are "size_t size" and "size_t nmemb", when writing a string we should set sizeof(char) and len(string). The test is doing it wrongly and making the function read more memory than it should. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>