i do not have any C compiler available, but i suspect it won't let you index on 0 (or any integer literal) without explicitly casting the literal to a complete type.
((int*)0)[2] , i expect will work
(and promptly sigsev the process out of the execution queue)
1
u/QuestionableSarcasm Aug 01 '22
i do not have any C compiler available, but i suspect it won't let you index on
0(or any integer literal) without explicitly casting the literal to a complete type.((int*)0)[2], i expect will work(and promptly sigsev the process out of the execution queue)