• Georgi Kodinov's avatar
    Bug #27312862: ASAN: HEAP-USE-AFTER-FREE: UPDATEXML RB#21666 RB#21666 · c5e96743
    Georgi Kodinov authored
    The xpath parsing function was using a local string buffer that was
    deallocated when going out of scope. However references to it are
    preserved in the XPATH parse tree. This was causing read-after-free.
    
    Fixed by making the xpath buffer a local variable inside the Item
    class for the relevant xpath function, thus being preserved for the
    duration of the query.
    c5e96743
item_xmlfunc.cc 73.4 KB