Page MenuHomePhabricator

ecore: do not rely on implicit rules for memory lifecycle during test.
ClosedPublic

Authored by cedric on Jun 19 2019, 2:44 PM.

Details

Summary

alloca force the memory to be accessible for the entire duration of the
scope of the function it is called from. This will garantee that the
memory pointer are not recycled under our feet before we check them.

T8020

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
cedric created this revision.Jun 19 2019, 2:44 PM
cedric requested review of this revision.Jun 19 2019, 2:44 PM
zmike accepted this revision.Jun 20 2019, 6:38 AM
This revision is now accepted and ready to land.Jun 20 2019, 6:38 AM
This revision was automatically updated to reflect the committed changes.