• Georgi Kodinov's avatar
    Bug #25111907: XML TEST FAILS WITH UNDEFINED BEHAVIOR · dafbdc78
    Georgi Kodinov authored
    The XML parser position stack for each level is with a fixed depth.
    So a bounds check was done to ensure that this depth is not exceeded.
    But it was off by one (i.e. the size of the array was a valid index).
    Fixed by decreasing the allowable depth by one to match the maximum
    number of elements in the position stack.
    dafbdc78
item_xmlfunc.cc 73.1 KB