You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RawDeflate with FIXED or NONE mode doesn't work well with an 0-byte input. (DYNAMIC looks working)
Using NONE produces 32768 0x00s, which results in an error when inflated.
Using FIXED produces 1-byte output 0x03, but it also results in an error when inflated.
Reffering rfc1951, I think NONE should produce [0x01, 0x00, 0x00, 0xff, 0xff] and FIXED should produce [0x03, 0x00]. Both of them can be inflated to a 0-byte result.
RawDeflate with FIXED or NONE mode doesn't work well with an 0-byte input. (DYNAMIC looks working)
Using NONE produces 32768
0x00
s, which results in an error when inflated.Using FIXED produces 1-byte output
0x03
, but it also results in an error when inflated.Test code (tested on RunKit + npm: zlibjs with Node 16):
Reffering rfc1951, I think NONE should produce
[0x01, 0x00, 0x00, 0xff, 0xff]
and FIXED should produce[0x03, 0x00]
. Both of them can be inflated to a 0-byte result.The text was updated successfully, but these errors were encountered: