We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66b7d5c + 86bc8c6 commit 6d2067fCopy full SHA for 6d2067f
AUTHORS
@@ -35,6 +35,7 @@ Runrioter Wung <runrioter at gmail.com>
35
Soroush Pour <me at soroushjp.com>
36
Xiaobing Jiang <s7v7nislands at gmail.com>
37
Xiuming Chen <cc at cxm.cc>
38
+Stan Putrya <root.vagner at gmail.com>
39
40
# Organizations
41
utils.go
@@ -777,6 +777,10 @@ func skipLengthEncodedString(b []byte) (int, error) {
777
778
// returns the number read, whether the value is NULL and the number of bytes read
779
func readLengthEncodedInteger(b []byte) (uint64, bool, int) {
780
+ // See issue #349
781
+ if len(b) == 0 {
782
+ return 0, true, 1
783
+ }
784
switch b[0] {
785
786
// 251: NULL
0 commit comments