The existing code, when run on a fuzzed example, generates a runtime assertion. The reason for this is that the input defines "memmove" as an external global. However, the code generator can generate calls to "memmove" which assumes it is internal (see PNaCl ABI). As a result, the assertion that checks that global names are unique (for memmove) fails. This code fixes the problem by checking that global names are internal, unless they are one of the "start" functions, or the function is an intrinsic. To allow for non-PNaCl ABI input, a flag was added to allow functions to be external. However, in such cases the external can't be one of Subzero's runtime helper functions. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4330 R=jpp@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1387963002 .
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Inputs | Loading commit data... | |
| bad-bb-size.test | Loading commit data... | |
| bad-global-alignment.test | Loading commit data... | |
| bad-intrinsic-arg.test | Loading commit data... | |
| bad-switch-case.test | Loading commit data... | |
| bad-var-fwdref.test | Loading commit data... | |
| call-fcn-bad-param-type.ll | Loading commit data... | |
| call-fcn-bad-return-type.ll | Loading commit data... | |
| call-indirect-i8.ll | Loading commit data... | |
| dup-module-vst.test | Loading commit data... | |
| duplicate-fcn-name.test | Loading commit data... | |
| fcn-value-index-isnt-defined.test | Loading commit data... | |
| indirect-call-on-float.test | Loading commit data... | |
| insertelt-wrong-type.test | Loading commit data... | |
| insertextract-err.ll | Loading commit data... | |
| lit.local.cfg | Loading commit data... | |
| multiple-modules.test | Loading commit data... | |
| nacl-fake-intrinsic.ll | Loading commit data... | |
| symtab-after-fcn.test | Loading commit data... |