48f39f6 out of bounds read access in is_utf8_well_formed()

Authored and Committed by Jozef Mlich 8 years ago
    out of bounds read access in is_utf8_well_formed()
    Resolves: #1201310
    CVE-2014-9488
    
    This is an update of previous patch.
    
    The function is_utf8_well_formed was defined in charset.c with single parameter. I was surprised, that it is even compiling.
    
    This new patch is updating own implementation of function is_utf8_well_formed and fixing also its other use. The code is taken from Mark Nudelman's unreleased version of less.
    
        
file modified
+5 -2