https://bugs.kde.org/show_bug.cgi?id=514094

--- Comment #5 from Paul Floyd <[email protected]> ---
I didn't check the commit message of 0690dc39644d15fc89813419ffcdf9754b098260

How about instead of

         SET_STATUS_from_SysRes( VG_(do_syscall3)(saved, (UWord)name, 
                                                  ARG2, ARG3));

something like

Int oldlen = RET;
SysRes newret = do_syscall3)(saved, (UWord)name, ARG2, ARG3);
Int newlen = sr_Res(newret);
if (newlen < oldlen)
   VG_(memset)((void*)(ARG2+newlen, 0, oldlen-newlen);

(not yet tested)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to