fix: restrict octal parsing to single-byte range (#2516)

This commit is contained in:
valoq authored and GitHub committed 2026-04-15 11:28:36 +10:00
1 parent 647a64db09
commit 8debf05379
1 file changed
+1 -1
+1 -1
View File
@@ -242,7 +242,7 @@ scan:
oct = append(oct, s.chr)
s.next()
}
n, err := strconv.ParseInt(string(oct), 8, 0)
n, err := strconv.ParseUint(string(oct), 8, 8)
if err != nil {
log.Printf("scanning: %s", err)
}