screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #62097] UTF-8 should be limited to valid range


From: Carl Drougge
Subject: [screen-devel] [bug #62097] UTF-8 should be limited to valid range
Date: Tue, 22 Feb 2022 14:24:09 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?62097>

                 Summary: UTF-8 should be limited to valid range
                 Project: GNU Screen
            Submitted by: drougge
            Submitted on: Tue 22 Feb 2022 07:24:08 PM UTC
                Category: Program Logic
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
           Fixed Release: None
         Planned Release: None
           Work Required: None

    _______________________________________________________

Details:

The current UTF-8 encoding can emit invalid UTF-8 sequences for out of range
unicode values. I have attached patches for both V4 and V5.

The unpatched V4 code also contains clearly incorrect logic for overlong UTF-8
sequences that modern compilers will warn about (which I have removed).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 22 Feb 2022 07:24:08 PM UTC  Name:
0001-UTF-8-Replace-out-of-range-unicode-with-U-FFFD.v4.patch  Size: 2KiB   By:
drougge

<http://savannah.gnu.org/bugs/download.php?file_id=52904>
-------------------------------------------------------
Date: Tue 22 Feb 2022 07:24:08 PM UTC  Name:
0001-UTF-8-Replace-out-of-range-unicode-with-U-FFFD.v5.patch  Size: 1KiB   By:
drougge

<http://savannah.gnu.org/bugs/download.php?file_id=52905>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62097>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]