From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5941 invoked by alias); 12 Apr 2013 05:34:29 -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 5923 invoked by uid 89); 12 Apr 2013 05:34:29 -0000 X-Spam-SWARE-Status: No, score=-5.7 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-ve0-f171.google.com (HELO mail-ve0-f171.google.com) (209.85.128.171) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 12 Apr 2013 05:34:29 +0000 Received: by mail-ve0-f171.google.com with SMTP id b10so2083608vea.16 for ; Thu, 11 Apr 2013 22:34:27 -0700 (PDT) X-Received: by 10.58.15.193 with SMTP id z1mr7366960vec.40.1365744867197; Thu, 11 Apr 2013 22:34:27 -0700 (PDT) Received: from localhost.localdomain (pool-173-48-243-11.bstnma.fios.verizon.net. [173.48.243.11]) by mx.google.com with ESMTPS id bi15sm7308414vdc.6.2013.04.11.22.34.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 11 Apr 2013 22:34:25 -0700 (PDT) From: KOSAKI Motohiro To: libc-alpha@sourceware.org, libc-ports@sourceware.org Cc: KOSAKI Motohiro Subject: [PATCH 1/4] __fdelt_chk: Removed range check Date: Fri, 12 Apr 2013 05:34:00 -0000 Message-Id: <1365744803-19197-2-git-send-email-kosaki.motohiro@gmail.com> In-Reply-To: <1365744803-19197-1-git-send-email-kosaki.motohiro@gmail.com> References: <1365744803-19197-1-git-send-email-kosaki.motohiro@gmail.com> X-SW-Source: 2013-04/txt/msg00044.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