This is the mail archive of the
systemtap-cvs@sourceware.org
mailing list for the systemtap project.
[SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.8-184-g7bd603e
- From: jistone at sourceware dot org
- To: systemtap-cvs at sourceware dot org
- Date: 14 Aug 2012 01:36:47 -0000
- Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.8-184-g7bd603e
- Reply-to: systemtap at sourceware dot org
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "systemtap: system-wide probe/trace tool".
The branch, master has been updated
via 7bd603e17b167affd6c7d2998cee5da699ce5ea5 (commit)
from a352456594876f0fc04412b60bff6c2595ace3fb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7bd603e17b167affd6c7d2998cee5da699ce5ea5
Author: Josh Stone <jistone@redhat.com>
Date: Mon Aug 13 18:32:40 2012 -0700
PR14396: Truncate UTF strings silently
The UTF-16 and UTF-32 conversion functions were correctly refusing to
write a partial UTF-8 sequence into the buffer, but they were treating
that case as an error. It should just silently stop processing, so the
result is truncated just as any other string concatenation does.
* tapset/linux/conversions.stp (kernel_string_utf32): Treat only rc<0
from _stp_convert_utf32 as an error; rc==0 is truncation.
(kernel_string_utf16): Ditto.
* tapset/linux/uconversions.stp (user_string_utf32): Ditto.
(user_string_utf16): Ditto.
* testsuite/systemtap.base/utf_kernel_trunc.*: Test a broad range of
truncation points within kernel UTF strings.
* testsuite/systemtap.base/utf_user_trunc.*: Same test for userspace.
(The duplication is unfortunate, but it's not too crazy.)
-----------------------------------------------------------------------
Summary of changes:
tapset/linux/conversions.stp | 16 +++--
tapset/linux/uconversions.stp | 16 +++--
testsuite/systemtap.base/utf_kernel_trunc.exp | 30 +++++++++
testsuite/systemtap.base/utf_kernel_trunc.stp | 86 +++++++++++++++++++++++++
testsuite/systemtap.base/utf_user_trunc.c | 74 +++++++++++++++++++++
testsuite/systemtap.base/utf_user_trunc.exp | 45 +++++++++++++
testsuite/systemtap.base/utf_user_trunc.stp | 11 +++
7 files changed, 266 insertions(+), 12 deletions(-)
create mode 100644 testsuite/systemtap.base/utf_kernel_trunc.exp
create mode 100644 testsuite/systemtap.base/utf_kernel_trunc.stp
create mode 100644 testsuite/systemtap.base/utf_user_trunc.c
create mode 100644 testsuite/systemtap.base/utf_user_trunc.exp
create mode 100644 testsuite/systemtap.base/utf_user_trunc.stp
hooks/post-receive
--
systemtap: system-wide probe/trace tool