-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
The private constructor X509Certificate._() creates an object with an uninitialized native field, and the member functions of that object dereference that field. This is safe because the only function that calls that constructor also initializes the native field. Even if we initialized it to NULL in the constructor, the methods will still have a null dereference. We could check the field against NULL in every method , and throw an exception, but this should never happen. The only way it could happen is for someone to use mirrors to access the private constructor, and make the object.
To avoid a security problem, we can initialize the field to NULL, but this requires a new native function.
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug