diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2024-03-10 23:42:46 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2024-03-10 23:42:46 +0100 |
commit | 6915bdb8fcdaeee585bbc9aaa52311e8c695da01 (patch) | |
tree | fb2227327879ffdd1d6a3d652a70043afb7db58e /libcpp/charset.cc | |
parent | ffba2ab00fb01d77dfc4103bfffabebfc2568d9a (diff) | |
parent | 5f5e37dcbc19cbbaec58789fc532cb9940413258 (diff) | |
download | gcc-6915bdb8fcdaeee585bbc9aaa52311e8c695da01.zip gcc-6915bdb8fcdaeee585bbc9aaa52311e8c695da01.tar.gz gcc-6915bdb8fcdaeee585bbc9aaa52311e8c695da01.tar.bz2 |
Merge commit 'f4a2ae2338962208b8039f154f5912402e94c378^' into HEAD
Diffstat (limited to 'libcpp/charset.cc')
-rw-r--r-- | libcpp/charset.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/charset.cc b/libcpp/charset.cc index 3041e0b..5d6d7ae 100644 --- a/libcpp/charset.cc +++ b/libcpp/charset.cc @@ -1927,7 +1927,7 @@ cpp_valid_utf8_p (const char *buffer, size_t num_bytes) invalid because they cannot be represented in UTF-16. Reject such values.*/ - if (cp >= UCS_LIMIT) + if (cp > UCS_LIMIT) return false; } /* No problems encountered. */ |