pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cyrille Chépélov <cyrille@softek.fr>
To: pgsql-odbc@postgresql.org
Subject: [patch] CodeGuard fix
Date: Wed, 17 Dec 2003 10:35:36 +0100
Message-ID: <3FE02368.8030101@softek.fr> (raw)

Greetings,

the following patch (against 7.03.0200) contains two things:
	- The first hunk is necessary to build psqlodbc using Borland C++ 
Builder 6.0 [I successfully built the whole DLL, which requires a few 
other patches]
	- The second hunk is necessary as Borland's sscanf would do all sorts 
of things with rest[] when CodeGuard is active (I wonder if it's not 
their way of hinting that we have an opportunity for a buffer overrun here).

I wonder if we shouldn't apply a better fix, to avoid entirely the "%s" 
format argument to sscanf, and finding another way to locate a "const 
char* rest" within the caller-supplied str?

Best Regards,
	
	-- Cyrille



view thread (5+ messages)  latest in thread

Message-ID: <3FE02368.8030101@softek.fr>
Permalink:  ../3FE02368.8030101@softek.fr/
Also on:    postgresql.org/message-id/3FE02368.8030101@softek.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cyrille@softek.fr
  Subject: Re: [patch] CodeGuard fix
  In-Reply-To: <3FE02368.8030101@softek.fr>
  References: <3FE02368.8030101@softek.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox