mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-693 error checking on binary file import
X-SVN-Rev: 2780
This commit is contained in:
parent
30b03c5d73
commit
64c81606e0
1 changed files with 7 additions and 0 deletions
|
@ -445,6 +445,13 @@ parse(FileStream *f, const char *cp, const char *inputDir,
|
|||
importFile = T_FileStream_open(openFileName, "rb");
|
||||
uprv_free(openFileName);
|
||||
}
|
||||
if(importFile == NULL) {
|
||||
fprintf(stderr, "Error! Couldn't open input file %s for tag %s\n", fileName, cTag);
|
||||
|
||||
node = eError;
|
||||
continue;
|
||||
}
|
||||
|
||||
len = T_FileStream_size(importFile);
|
||||
binData = uprv_malloc(len);
|
||||
T_FileStream_read(importFile,binData,len);
|
||||
|
|
Loading…
Add table
Reference in a new issue