-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse SAS format strings for XPT outputs (#258)
Fixes #257 * Update XPT reading code in line with the output changes * Check if label_set has been set before running roundtrip test * Use Ragel parser for xport format name parsing * Use struct to store parsed xport format * Add fuzzer for xport_parse_format * Add new files to VS17 project
- Loading branch information
Showing
14 changed files
with
605 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
"$ASCII" | ||
"$BASE64X" | ||
"$BINARY" | ||
"$CHAR" | ||
"$EBCDIC" | ||
"$HEX" | ||
"$MSGCASE" | ||
"$OCTAL" | ||
"$QUOTE" | ||
"$REVERJ" | ||
"$REVERS" | ||
"$UPCASE" | ||
"$VARYING" | ||
"$" | ||
"$N8601B" | ||
"$N8601BA" | ||
"$N8601E" | ||
"$N8601EA" | ||
"$N8601EH" | ||
"$N8601EX" | ||
"$N8601H" | ||
"$N8601X" | ||
"B8601DA" | ||
"B8601DN" | ||
"B8601DT" | ||
"B8601DZ" | ||
"B8601LZ" | ||
"B8601TM" | ||
"B8601TZ" | ||
"DATE" | ||
"DATEAMPM" | ||
"DATETIME" | ||
"DAY" | ||
"DDMMYY" | ||
"DDMMYY" | ||
"DOWNAME" | ||
"DTDATE" | ||
"DTMONYY" | ||
"DTWKDATX" | ||
"DTYEAR" | ||
"DTYYQC" | ||
"E8601DA" | ||
"E8601DN" | ||
"E8601DT" | ||
"E8601DZ" | ||
"E8601LZ" | ||
"E8601TM" | ||
"E8601TZ" | ||
"HHMM" | ||
"HOUR" | ||
"JULDAY" | ||
"JULIAN" | ||
"MMDDYY" | ||
"MMDDYY" | ||
"MMSS" | ||
"MMYY" | ||
"MMYY" | ||
"MONNAME" | ||
"MONTH" | ||
"MONYY" | ||
"PDJULG" | ||
"PDJULI" | ||
"QTR" | ||
"QTRR" | ||
"TIME" | ||
"TIMEAMPM" | ||
"TOD" | ||
"WEEKDATE" | ||
"WEEKDATX" | ||
"WEEKDAY" | ||
"WEEKU" | ||
"WEEKV" | ||
"WEEKW" | ||
"WORDDATE" | ||
"WORDDATX" | ||
"YEAR" | ||
"YYMM" | ||
"YYMM" | ||
"YYMMDD" | ||
"YYMMDD" | ||
"YYMON" | ||
"YYQ" | ||
"YYQ" | ||
"YYQR" | ||
"YYQR" | ||
"$N8601B" | ||
"$N8601BA" | ||
"$N8601E" | ||
"$N8601EA" | ||
"$N8601EH" | ||
"$N8601EX" | ||
"$N8601H" | ||
"$N8601X" | ||
"B8601DA" | ||
"B8601DN" | ||
"B8601DT" | ||
"B8601DZ" | ||
"B8601LZ" | ||
"B8601TM" | ||
"B8601TZ" | ||
"E8601DA" | ||
"E8601DN" | ||
"E8601DT" | ||
"E8601DZ" | ||
"E8601LZ" | ||
"E8601TM" | ||
"E8601TZ" | ||
"BEST" | ||
"BESTD" | ||
"BINARY" | ||
"COMMA" | ||
"COMMAX" | ||
"D" | ||
"DOLLAR" | ||
"DOLLARX" | ||
"E" | ||
"FLOAT" | ||
"FRACT" | ||
"HEX" | ||
"IB" | ||
"IBR" | ||
"IEEE" | ||
"NEGPAREN" | ||
"NUMX" | ||
"OCTAL" | ||
"PD" | ||
"PERCENT" | ||
"PERCENTN" | ||
"PIB" | ||
"PIBR" | ||
"PK" | ||
"PVALUE" | ||
"RB" | ||
"ROMAN" | ||
"S370FF" | ||
"S370FIB" | ||
"S370FIBU" | ||
"S370FPD" | ||
"S370FPDU" | ||
"S370FPIB" | ||
"S370FRB" | ||
"S370FZD" | ||
"S370FZDL" | ||
"S370FZDS" | ||
"S370FZDT" | ||
"S370FZDU" | ||
"SSN" | ||
"VAXRB" | ||
"VMSZN" | ||
"" | ||
"WORDF" | ||
"WORDS" | ||
"Z" | ||
"ZD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <stdlib.h> | ||
#include <time.h> | ||
|
||
#include "../readstat.h" | ||
#include "../sas/readstat_xport.h" | ||
#include "../sas/readstat_xport_parse_format.h" | ||
|
||
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { | ||
xport_format_t format; | ||
xport_parse_format((const char *)Data, Size, &format, NULL, NULL); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.