mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Various fixes to make CodeQL happy
This commit is contained in:
@@ -38,8 +38,7 @@ func is_oct_char(ch rune) bool {
|
||||
func (self *ansi_c) write_digits(base int) {
|
||||
if self.digit_idx > 0 {
|
||||
text := string(self.digits[:self.digit_idx])
|
||||
val, err := strconv.ParseUint(text, base, 32)
|
||||
if err == nil {
|
||||
if val, err := strconv.ParseUint(text, base, 32); err == nil && val <= 0x10ffff {
|
||||
self.output.WriteRune(rune(val))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user