Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Whitespace diffs. Committing separate from other changes. * Ensure PT_CHARBUF extracts set length. Ensure that all PT_CHARBUF filtercheck extracts set the length of the string they return. Although the strings they return are usually null-terminated, they may not always be null terminated, which causes problems in the chisel api when returning the strings to lua. This is half of the fix for #736. * Don't rely on PT_CHARBUFs being null terminated. Use lua_pushlstring to return extracted PT_CHARBUFs to lua. This way, even if a charbuf isn't null terminated it won't go past the end of the buffer. This is half of the fix for #736. * Properly initialize clone_ts. Initialize clone_ts when using a stack-residing scap_threadinfo to read from a proclist. Otherwise, when reading from an old trace file the initial clone_ts could be invalid, causing this difference in the proc_exec_time chisel: diff -r /tmp/sysdig.NzoD98EsyQ/results/proc_exec_time/wordpress.scap.output /tmp/sysdig.NzoD98EsyQ/baseline/proc_exec_time/wordpress.scap.output 3d2 < 1425066765.22 sleep 0.1
- Loading branch information