delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/23/15:22:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_40,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4F1DC14B.1090900@cs.utoronto.ca>
Date: Mon, 23 Jan 2012 15:21:31 -0500
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: isprint core dump
References: <2BF01EB27B56CC478AD6E5A0A28931F203DD40F5 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net>
In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F203DD40F5@A1DAL1SWPES19MB.ams.acs-inc.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 23/01/2012 3:16 PM, Nellis, Kenneth wrote:
> I haven't had the chance to try under Linux, but
>    isprint(3055872)
> is core-dumping on me.

 From the isprint() man page:
> /c/ ... must have the value of an /unsigned char/ or *EOF*

The test case probably overruns some internal table by 3MB or so.

Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019