mirror of
https://github.com/postgres/postgres.git
synced 2026-04-02 07:46:09 -04:00
Add comment explaining possible compiler warning:
/*
* Some compilers with throw a warning knowing this test can never be
* true because off_t can't exceed the compared maximum.
*/
if (th->fileLen > MAX_TAR_MEMBER_FILELEN)
die_horribly(AH, modulename, "archive member too large for tar format\n");
This commit is contained in:
parent
eeed2274e5
commit
5548122829
1 changed files with 5 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.45 2004/10/07 15:21:55 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.46 2004/11/29 03:01:54 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -1019,6 +1019,10 @@ _tarAddFile(ArchiveHandle *AH, TAR_MEMBER *th)
|
|||
*/
|
||||
fseeko(tmp, 0, SEEK_END);
|
||||
th->fileLen = ftello(tmp);
|
||||
/*
|
||||
* Some compilers with throw a warning knowing this test can never be
|
||||
* true because off_t can't exceed the compared maximum.
|
||||
*/
|
||||
if (th->fileLen > MAX_TAR_MEMBER_FILELEN)
|
||||
die_horribly(AH, modulename, "archive member too large for tar format\n");
|
||||
fseeko(tmp, 0, SEEK_SET);
|
||||
|
|
|
|||
Loading…
Reference in a new issue