Unix Technical Forum

pgsql: GCC 4.0 includes a new warning option, -Wformat-literal, that

This is a discussion on pgsql: GCC 4.0 includes a new warning option, -Wformat-literal, that within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- GCC 4.0 includes a new warning option, -Wformat-literal, that emits a warning when a variable is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:55 AM
Neil Conway
 
Posts: n/a
Default pgsql: GCC 4.0 includes a new warning option, -Wformat-literal, that

Log Message:
-----------
GCC 4.0 includes a new warning option, -Wformat-literal, that emits
a warning when a variable is used as a format string for printf()
and similar functions (if the variable is derived from untrusted
data, it could include unexpected formatting sequences). This
emits too many warnings to be enabled by default, but it does
flag a few dubious constructs in the Postgres tree. This patch
fixes up the obvious variants: functions that are passed a variable
format string but no additional arguments.

This patch fixes a bug in pg_dump (triggers with formatting sequences
in their names are not dumped correctly) and some related pg_dump
code that looks dubious; cleanups for more harmless instances have
been applied to more recent branches.

Tags:
----
REL7_3_STABLE

Modified Files:
--------------
pgsql/src/bin/pg_dump:
pg_backup_archiver.c (r1.62.2.5 -> r1.62.2.6)
(http://developer.postgresql.org/cvsw....5&r2=1.62.2.6)
pg_dump.c (r1.305.2.10 -> r1.305.2.11)
(http://developer.postgresql.org/cvsw...&r2=1.305.2.11)

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com