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

Commitd1f9ac5

Browse files
committed
Fix unportable usage of <ctype.h> functions.
isdigit(), isspace(), etc are likely to give surprising results if passed asigned char. We should always cast the argument to unsigned char to avoidthat. Error in commit63d6b97, found by buildfarm member gaur.Back-patch to 9.3, like that commit.
1 parent4b0d28d commitd1f9ac5

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎src/interfaces/ecpg/ecpglib/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ garbage_left(enum ARRAY_TYPE isarray, char **scan_length, enum COMPAT_MODE compa
5757
/* skip invalid characters */
5858
do {
5959
(*scan_length)++;
60-
}while (isdigit(**scan_length));
60+
}while (isdigit((unsignedchar)**scan_length));
6161
}
6262

6363
if (**scan_length!=' '&&**scan_length!='\0')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp