mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Adjust buffer size of source code loading
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
01c132434c
commit
babcedce95
2 changed files with 2 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ static OptionalRef<StringRef> builtinHelperFileRead(OptionalRef<ExecutionStateRe
|
|||
return src;
|
||||
} else {
|
||||
if (state) {
|
||||
const size_t maxNameLength = 990;
|
||||
const size_t maxNameLength = 980;
|
||||
if ((strnlen(builtinName, maxNameLength) + strnlen(fileName, maxNameLength)) < maxNameLength) {
|
||||
char msg[1024];
|
||||
snprintf(msg, sizeof(msg), "GlobalObject.%s: cannot open file %s", builtinName, fileName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue