fix(net): add null checks after allocation in network code #150
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
OragonEfreet/banjo!150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/net-null-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add null checks after all bj_calloc() calls in both POSIX and Win32
network implementations. Previously, allocation failures would cause
null pointer dereferences. Now properly sets error and returns NULL,
with appropriate resource cleanup (closing sockets, freeing addrinfo).
Affected functions: