osirislab / ctf101

CTF101, a wiki-project documenting Capture The Flag techniques.
https://ctf101.org/
MIT License
142 stars 28 forks source link

Corrected memset call #21

Closed XORbit01 closed 6 months ago

XORbit01 commented 6 months ago
  1. Changed the memset call to properly fill allocated memory with zeros. The previous call mistakenly passed 0 as the source, which has been corrected to pass the value to fill the memory with.

  2. Added the necessary string.h header, to ensure the declaration of the memset function is included. This was missing, causing compilation errors.