delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/12/06:19:39

X-Sybari-Space: 00000000 00000000 00000000 00000000
From: Martin Stromberg <eplmst AT epl DOT ericsson DOT se>
Message-Id: <200212121119.MAA24949@lws256.lu.erisoft.se>
Subject: Re: scanf buffer overflow; support 'hh' conversion specifier [PATCH]
To: djgpp-workers AT delorie DOT com
Date: Thu, 12 Dec 2002 12:19:34 +0100 (MET)
In-Reply-To: <3DF86A50.69057DB1@phekda.freeserve.co.uk> from "Richard Dawe" at Dec 12, 2002 10:52:00 AM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Richard said:
> After thinking about it, hX will only produce a bug, if you think X should
> behave as C99 describes. If X is a Borland compatibility thing, then it's may
> be working OK. (Although I'm not sure why X is special-cased in the handling
> of Borland-compatible type conversions.) My copy of K&R doesn't list X in the
> table of type conversions, so I'm guessing X is a C99-thing.

It's not in C89 for *scanf(). But it's there for *printf(). We _are_
talking about *scanf(), right (buffer overflow)?


Right,

						MartinS

- Raw text -


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