Message ID | 20170823072123.18769-14-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xcf7t2xgzz9s3w for <incoming@patchwork.ozlabs.org>; Wed, 23 Aug 2017 17:24:42 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xcf7t0zN6zDrKc for <incoming@patchwork.ozlabs.org>; Wed, 23 Aug 2017 17:24:42 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xcf4G6TWMzDqkd for <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 17:21:34 +1000 (AEST) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v7N7KACq032101 for <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 03:21:32 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ch2xv863c-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 03:21:32 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <skiboot@lists.ozlabs.org> from <stewart@linux.vnet.ibm.com>; Wed, 23 Aug 2017 01:21:31 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 23 Aug 2017 01:21:29 -0600 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v7N7LTmk30212214; Wed, 23 Aug 2017 00:21:29 -0700 Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6FE1B6E035; Wed, 23 Aug 2017 01:21:29 -0600 (MDT) Received: from birb.localdomain (unknown [9.83.2.72]) by b03ledav001.gho.boulder.ibm.com (Postfix) with SMTP id C74E86E038; Wed, 23 Aug 2017 01:21:28 -0600 (MDT) Received: by birb.localdomain (Postfix, from userid 1000) id 90034332AA9; Wed, 23 Aug 2017 17:21:24 +1000 (AEST) From: Stewart Smith <stewart@linux.vnet.ibm.com> To: skiboot@lists.ozlabs.org Date: Wed, 23 Aug 2017 17:21:23 +1000 X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170823072123.18769-1-stewart@linux.vnet.ibm.com> References: <20170823072123.18769-1-stewart@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 17082307-0028-0000-0000-0000083FED1C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007595; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000223; SDB=6.00906370; UDB=6.00454276; IPR=6.00686572; BA=6.00005550; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016821; XFM=3.00000015; UTC=2017-08-23 07:21:30 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17082307-0029-0000-0000-00003742664B Message-Id: <20170823072123.18769-14-stewart@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-08-23_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708230108 Subject: [Skiboot] [PATCH 13/13] libc/test/run-snprintf: int -> unsigned int X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
diff --git a/libc/test/run-snprintf.c b/libc/test/run-snprintf.c index 80993e89748e..5e6703036c89 100644 --- a/libc/test/run-snprintf.c +++ b/libc/test/run-snprintf.c @@ -107,7 +107,8 @@ static void test_printf_x(const char* f) { char *buf, *buf2; int blen; - int i, r, n=0x1; + int i, r; + unsigned int n=0x1; for (i=0; i<8; i++) {
UBSan: libc/test/run-snprintf.c:123:9: runtime error: left shift of 268435456 by 4 places cannot be represented in type 'int' Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> --- libc/test/run-snprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)