Skip to content
Success

Changes

Summary

  1. Fix various undefined behaviors (commit: 0736596) (details)
Commit 0736596751437a6336217da171761f7a8811afdb by i
Fix various undefined behaviors
- Initialize local variables before their first use
- `time_t` has an implementation-defined type. It must be converted to a
specific type before being passed to `sprintf`.
- Fix OOB access to `packets`
- Truncate long chat messages. Note that the server can send a chat
message with an arbitrary length.
(commit: 0736596)
The file was modified src/network.c (diff)
The file was modified src/main.c (diff)