Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8108568ba882c351e2026cc5c6615c31cbd2a31a
Ticket: 67aa9a207037ae67f9014b544c3db34fa732f2dc
Security: Invalid UTF-8 can inject unexpected characters
User & Date: jan.nijtmans on 2017-05-31 13:19:58
Changes

  1. closedate changed to: "2457905.05554272"
  2. closer changed to: "jan.nijtmans"
  3. icomment:
    I think the UTF-8 standard is absolutely clear about what are invalid byte sequences and what not! Tcl already handles many invalid byte sequences, just these ones have always been forgotten.
    
    See: [https://en.wikipedia.org/wiki/UTF-8#Invalid_byte_sequences]
    
    Currently we only handle 1-3.
    
    Actually, I thought that Tcl already handled this long ago. Fossil has a function invalid_utf8() which does the same checks.
    
    Please talk to security people, it's embarrassing not to handle this nowadays, really!
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/x-fossil-wiki"