[cfe/vm] Soundness issue in the vm #46390
Labels
legacy-area-front-end
Legacy: Use area-dart-model instead.
P2
A bug or feature request we're likely to work on
soundness
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following program:
Using tools from dea0488:
The program is accepted by the analyzer (which is OK), and it is accepted by the CFE (which is OK, but the generated kernel code does not include an implicitly induced type checking stub for
foo
inC
, and that's probably a bug).However, when the program is executed on the vm there is no dynamic error, it just prints 'bool', and that shows that we've encountered a soundness violation.
I'll mark this issue as 'area-front-end', because the generated kernel code seems to be wrong (I would have expected
_C&A&B
orC
to contain an implementation offoo
where there required dynamic type check on the actual argument is performed):However,
dart2js
does raise the dynamic error, so maybe the backends are responsible for part of the work?The text was updated successfully, but these errors were encountered: