[GHC] #7853: UTF encodings do not detect overlong forms

GHC cvs-ghc at haskell.org
Mon Apr 22 22:24:39 CEST 2013


#7853: UTF encodings do not detect overlong forms
----------------------------------------+-----------------------------------
Reporter:  batterseapower               |          Owner:                  
    Type:  bug                          |         Status:  new             
Priority:  normal                       |      Component:  libraries/base  
 Version:  7.6.3                        |       Keywords:                  
      Os:  Unknown/Multiple             |   Architecture:  Unknown/Multiple
 Failure:  Incorrect result at runtime  |      Blockedby:                  
Blocking:                               |        Related:                  
----------------------------------------+-----------------------------------

Comment(by batterseapower):

 Addendum: luckily GHC already detects overlong 3/4 byte forms. It merely
 lacks the check for 2-byte forms. I have a marvelous patch on a private
 branch that remedies this flaw, but alas this margin is too small to
 contain it.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7853#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list