RFR: 8308549: Classfile API should fail to generate over-sized Code attribute
Adam Sotona
asotona at openjdk.org
Wed May 24 11:20:58 UTC 2023
On Tue, 23 May 2023 15:13:04 GMT, Chen Liang <liach at openjdk.org> wrote:
> On a side note, does Classfile API reject methods with too many slots (locals) (MethodTypeDesc can represent parameter lists with over 255 slots) or stack (operand)?
Classfile API does not perform any extra verifications of MethodTypeDesc and 255 slots is limit for method parameters. Code attribute maxLocals and maxStack have limit of 65535, however it is not checked yet.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14100#issuecomment-1560933070
More information about the core-libs-dev
mailing list