Commit d4116da
committed
Fix NULL pointer dereference in stringify_headers() error path
Add NULL check after stringify_headers() call to prevent undefined
behavior when malloc fails inside the function. Return error code 3
to maintain consistency with existing error handling.
This is a follow-up fix to PR #1092.1 parent 61ca4f1 commit d4116da
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments