From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 598 invoked by alias); 14 Apr 2013 00:47:42 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 470 invoked by uid 89); 14 Apr 2013 00:47:41 -0000 X-Spam-SWARE-Status: No, score=-5.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 X-Spam-User: qpsmtpd, 2 recipients Received: from mail-da0-f47.google.com (HELO mail-da0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 14 Apr 2013 00:47:40 +0000 Received: by mail-da0-f47.google.com with SMTP id s35so1604371dak.34 for ; Sat, 13 Apr 2013 17:47:39 -0700 (PDT) X-Received: by 10.68.213.101 with SMTP id nr5mr21842011pbc.22.1365900459185; Sat, 13 Apr 2013 17:47:39 -0700 (PDT) Received: from localhost.localdomain (c-69-181-125-41.hsd1.ca.comcast.net. [69.181.125.41]) by mx.google.com with ESMTPS id ef4sm14278084pbd.38.2013.04.13.17.47.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 13 Apr 2013 17:47:38 -0700 (PDT) From: KOSAKI Motohiro To: libc-alpha@sourceware.org, libc-ports@sourceware.org Cc: KOSAKI Motohiro Subject: [PATCH 1/5] __fdelt_chk: Removed range check Date: Sun, 14 Apr 2013 00:47:00 -0000 Message-Id: <1365900451-19026-2-git-send-email-kosaki.motohiro@gmail.com> In-Reply-To: <1365900451-19026-1-git-send-email-kosaki.motohiro@gmail.com> References: <1365900451-19026-1-git-send-email-kosaki.motohiro@gmail.com> X-SW-Source: 2013-04/txt/msg00052.txt.bz2 Signed-off-by: KOSAKI Motohiro --- ChangeLog | 5 +++++ debug/fdelt_chk.c | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36efa0b..5311919 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-25 KOSAKI Motohiro + + * debug/fdelt_chk.c (__fdelt_chk): Removed range check + and renamed to __fdelt_nochk. + 2013-04-11 Carlos O'Donell * math/libm-test.inc (cos_test): Fix PI/2 test. diff --git a/debug/fdelt_chk.c b/debug/fdelt_chk.c index d149476..6588be0 100644 --- a/debug/fdelt_chk.c +++ b/debug/fdelt_chk.c @@ -19,11 +19,9 @@ long int -__fdelt_chk (long int d) +__fdelt_nochk (long int d) { - if (d < 0 || d >= FD_SETSIZE) - __chk_fail (); - return d / __NFDBITS; } -strong_alias (__fdelt_chk, __fdelt_warn) +strong_alias (__fdelt_nochk, __fdelt_chk) +strong_alias (__fdelt_nochk, __fdelt_warn) -- 1.7.1