Browse Source

Merge pull request #1946 from svaarala/document-duk-bytecode-unvalidated

Note bytecode memory unsafety in duk --help
pull/1949/head
Sami Vaarala 6 years ago
committed by GitHub
parent
commit
a830a44032
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      examples/cmdline/duk_cmdline.c

7
examples/cmdline/duk_cmdline.c

@ -1565,7 +1565,12 @@ int main(int argc, char *argv[]) {
" --recreate-heap recreate heap after every file\n"
" --no-heap-destroy force GC, but don't destroy heap at end (leak testing)\n"
"\n"
"If <filename> is omitted, interactive mode is started automatically.\n");
"If <filename> is omitted, interactive mode is started automatically.\n"
"\n"
"Input files can be either Ecmascript source files or bytecode files.\n"
"Bytecode files are not validated prior to loading, so that incompatible\n"
"or crafted files can cause memory unsafe behavior. See discussion in\n"
"https://github.com/svaarala/duktape/blob/master/doc/bytecode.rst#memory-safety-and-bytecode-validation.\n");
fflush(stderr);
exit(1);
}

Loading…
Cancel
Save