Debian Patches

Status for golang-github-tidwall-gjson/1.19.0-1

Patch Description Author Forwarded Bugs Origin Last update
0001-Change-utf8-behavior-for-invalid-codepoints.patch Change utf8 behavior for invalid codepoints
Go changed utf8 json string encoding in 1.27.
Before (1.26) an invalid codepoint was written as \ufffd.
Now (1.27) it written unencoded as the unicode replacement
character sequence "\xef\xbf\xbd".

GJSON attempts to ensure that its json string encoding matches
the standard library, therefore gjson now uses "\xef\xbf\xbd"
too.

Fixes #397
tidwall <joshbaker77@gmail.com> no 2026-08-27
0002-Fix-large-number-overflows-for-Int-and-Uint.patch Fix large number overflows for Int() and Uint()
This commit fixes an issue where overflowing of integers could result in
invalid numbers.

Now integers that overflow will always be clipped to their min/max value.

gjson.Get(`{"n":18446744073709551616}`,"n").Uint() = 18446744073709551615
gjson.Get(`{"n":99999999999999999999.9}`,"n").Uint() = 18446744073709551615
gjson.Get(`{"n":-10}`,"n").Uint() = 0
gjson.Get(`{"n":9223372036854775808}`,"n").Int() = 9223372036854775807
gjson.Get(`{"n":-9223372036854775808}`,"n").Int() = -9223372036854775808

Also included in this commit is using Int() or Uint() on json strings that
contain valid numbers will share the same behavior as above.

gjson.Get(`{"n":"18446744073709551616"}`,"n").Uint() = 18446744073709551615
gjson.Get(`{"n":"99999999999999999999.9"}`,"n").Uint() = 18446744073709551615
gjson.Get(`{"n":"-10"}`,"n").Uint() = 0
gjson.Get(`{"n":"9223372036854775808"}`,"n").Int() = 9223372036854775807
gjson.Get(`{"n":"-9223372036854775808"}`,"n").Int() = -9223372036854775808

Fixes #394
tidwall <joshbaker77@gmail.com> no 2026-08-27
0003-Ensure-floating-points-are-correctly-being-clipped.patch Ensure floating points are correctly being clipped
Casting overflowed floating point to integers using uint64() or
int64() will behave different depending on cpu.

This commit ensures behave the same.

For #394
tidwall <joshbaker77@gmail.com> no 2026-08-27

All known versions for source package 'golang-github-tidwall-gjson'

Links