From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21820 invoked by alias); 14 Aug 2012 01:36:50 -0000 Received: (qmail 21766 invoked by uid 9586); 14 Aug 2012 01:36:48 -0000 Date: Tue, 14 Aug 2012 01:36:00 -0000 Message-ID: <20120814013647.21755.qmail@sourceware.org> From: jistone@sourceware.org To: systemtap-cvs@sourceware.org Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.8-184-g7bd603e X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: a352456594876f0fc04412b60bff6c2595ace3fb X-Git-Newrev: 7bd603e17b167affd6c7d2998cee5da699ce5ea5 Mailing-List: contact systemtap-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-cvs-owner@sourceware.org List-Archive: Reply-To: systemtap@sourceware.org X-SW-Source: 2012-q3/txt/msg00115.txt.bz2 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 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