Repository navigation
Commit 821bca4
Allocate the output buffer before Zlib::Deflate#params
deflateParams may write output, but the buffer could be nil, and then
next_out was NULL and z->buf was used as a String.
Zlib::Deflate.new.params(1, 0)
#=> [BUG] Segmentation fault at 0x0000000000000014
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent ccb2d02 commit 821bca4
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1947 | 1947 | | |
1948 | 1948 | | |
1949 | 1949 | | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
1950 | 1953 | | |
1951 | 1954 | | |
1952 | 1955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| |||
0 commit comments