Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5548122

Browse files
committed
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");
1 parenteeed227 commit5548122

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/bin/pg_dump/pg_backup_tar.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*
1818
* IDENTIFICATION
19-
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.45 2004/10/07 15:21:55 momjian Exp $
19+
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.46 2004/11/29 03:01:54 momjian Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -1019,6 +1019,10 @@ _tarAddFile(ArchiveHandle *AH, TAR_MEMBER *th)
10191019
*/
10201020
fseeko(tmp,0,SEEK_END);
10211021
th->fileLen=ftello(tmp);
1022+
/*
1023+
*Some compilers with throw a warning knowing this test can never be
1024+
*true because off_t can't exceed the compared maximum.
1025+
*/
10221026
if (th->fileLen>MAX_TAR_MEMBER_FILELEN)
10231027
die_horribly(AH,modulename,"archive member too large for tar format\n");
10241028
fseeko(tmp,0,SEEK_SET);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp