]> sourceware.org Git - systemtap.git/commit
fix clamp_t arguments in user_string_n_quoted()
authorJonathan Lebon <jlebon@redhat.com>
Thu, 13 Jun 2013 14:20:45 +0000 (10:20 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Thu, 13 Jun 2013 15:37:50 +0000 (11:37 -0400)
commitd03bc68e1f7050ba5dfeabbe3e40c43b24f1f283
tree88d57fea3a4a38489ba27d6a6a8f3e3792bcdb2c
parent69b681c605f2f30297ad118e24bbbeb28ab845c9
fix clamp_t arguments in user_string_n_quoted()

The 'len' parameter passed to _stp_text_str() was incorrectly set to
1 higher than need be. The function _stp_text_str() does not count the
trailing NULL. In contrast, the function _stp_strncpy_from_user() does,
which is also used in this tapset, in which case 'len' should indeed be
incremented (see e.g. user_string_n()). This may have been the source
of the confusion.
tapset/uconversions.stp
This page took 0.028552 seconds and 5 git commands to generate.