• Alexander Barkov's avatar
    Bug#44332 my_xml_scan reads behind the end of buffer · cf0e22fe
    Alexander Barkov authored
    Problem: the scanner function tested for strings "<![CDATA[" and
    "-->" without checking input string boundaries, which led to valgrind's
    "Conditional jump or move depends on uninitialised value(s)" error.
    
    Fix: Adding boundary checking.
    
      @ mysql-test/r/xml.result
      @ mysql-test/t/xml.test
      Adding test
    
      @ strings/xml.c
      Adding a helper function my_xml_parser_prefix_cmp(),
      with input string boundary check.
    cf0e22fe
xml.c 11.9 KB