We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe333e commit f4b8b99Copy full SHA for f4b8b99
src/fread.c
@@ -929,6 +929,9 @@ static void parse_double_hexadecimal(FieldParseContext *ctx)
929
930
bool subnormal = false;
931
932
+ // Important!
933
+ // Keep in mind that only ch[0] is guaranteed to be mapped.
934
+ // Rearanging these checks will lead to segfault in rare cases.
935
if (ch[0] == '0' && (ch[1] == 'x' || ch[1] == 'X') &&
936
(ch[2] == '1' || (subnormal = (ch[2] == '0'))) && ch[3] == '.') {
937
ch += 4;
0 commit comments