summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@suse.de>2026-07-31 15:54:45 -0400
committerGabriel Krisman Bertazi <krisman@suse.de>2026-07-31 16:33:14 -0400
commita511442085c140da9cdbe60e3f0fab1c71480801 (patch)
treec0a53455e81788221f48f78bdde06667bdcfc1f7 /tools/lib/python
parent080241946ec542ada349fced93936e2aebb51c75 (diff)
downloadlinux-a511442085c140da9cdbe60e3f0fab1c71480801.tar.gz
linux-a511442085c140da9cdbe60e3f0fab1c71480801.zip
unicode: Properly reject invalid encoding version strings
Casefolding filesystems can request a specific version of UTF-8 at mount-time. utf8_parse_version then assembles the "major.minor.rev" string into an unsigned int. There were two issues with the parser logic: first, individual fields are read as signed int, allowing negative numbers, second, an overflowed field will result in unexpected results. Something like the below actually succeeds to mount using utf8-12.1.0. mount -t tmpfs -o casefold=utf8-12.0.256 none /mnt [ 10.867859] tmpfs: Using encoding : utf8-12.1.0 Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions