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

Commite7e71b9

Browse files
author
Michael Meskes
committed
Fix off-by-one check that can lead to a memory overflow in ecpg.
Patch by Liu Huailing <liuhuailing@cn.fujitsu.com>
1 parent2c31332 commite7e71b9

File tree

1 file changed

+1
-1
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+1
-1
lines changed

‎src/interfaces/ecpg/preproc/pgc.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ parse_include(void)
14111411

14121412
for (ip = include_paths; yyin ==NULL && ip !=NULL; ip = ip->next)
14131413
{
1414-
if (strlen(ip->path) +strlen(yytext) +3 > MAXPGPATH)
1414+
if (strlen(ip->path) +strlen(yytext) +4 > MAXPGPATH)
14151415
{
14161416
fprintf(stderr,_("Error: include path\"%s/%s\" is too long on line %d, skipping\n"), ip->path, yytext, yylineno);
14171417
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp