]> Cypherpunks repositories - gostls13.git/commit
compress/lzw: output a Clear code first, per GIF spec
authorNigel Tao <nigeltao@golang.org>
Sat, 9 Oct 2021 05:52:19 +0000 (16:52 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 12 Oct 2021 11:00:47 +0000 (11:00 +0000)
commit9c1dbdf60edbffeff10f58af21fa055eb0fdd29f
tree428cc9cf958129b4d03a5f5491d74d9a116433a5
parentd887d3be5f8f143f2475ddb2ea6c48ceb32def17
compress/lzw: output a Clear code first, per GIF spec

The TestStartsWithClearCode test is new, but if it existed beforehand,
the want strings would be "\x81" and "Hi\x81" without a starting "\x80".

Fixes #26108
Fixes #33748
Updates makeworld-the-better-one/didder#7
Updates nothings/stb#1222

Change-Id: I35ac0ed862ba6ee921ba9aee257bc19828abaa82
Reviewed-on: https://go-review.googlesource.com/c/go/+/354710
Trust: Nigel Tao <nigeltao@golang.org>
Run-TryBot: Nigel Tao <nigeltao@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/compress/lzw/writer.go
src/compress/lzw/writer_test.go