diff options
| author | Russ Cox <rsc@golang.org> | 2017-11-15 11:47:31 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2017-11-15 21:30:30 +0000 |
| commit | 3a181dc7bc8fd0c61d6090a85f87c934f1874802 (patch) | |
| tree | 716c5e505adec8bbcebf6ab2635cadf7ffb3c812 /src/database/sql | |
| parent | 7de9e5e199fb9a39e5564ead221b3615d6f89341 (diff) | |
| download | go-3a181dc7bc8fd0c61d6090a85f87c934f1874802.tar.xz | |
archive/zip: fix handling of replacement rune in UTF8 check
The replacement rune is a valid rune and can appear as itself in valid UTF8
(it encodes as three bytes). To check for invalid UTF8 it is necessary to
look for utf8.DecodeRune returning the replacement rune and size==1.
Change-Id: I169be8d1fe61605c921ac13cc2fde94f80f3463c
Reviewed-on: https://go-review.googlesource.com/78126
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
