Skip to content
0:00 / 0:00

#defer#c#return-orientedprogramming

Hacking myself so I don't forget to fclose()

sphaerophoria

33K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.

Advanced. Deep dive for people who know the field.

1.3K views1 year ago1 recommendation

Systems programmingSecurityCExploits and vulnerabilitiesMemory management

sphaerophoria explores using return-oriented programming techniques to implement a defer-like mechanism in C.

Please consider supporting. This content WILL end some day, but every dollar I make pushes that day further out Join on youtube for happy hour vods youtube.com/channel/UCXzL31BCxf8En1KT34gSK6g/join Or on patreon patreon.com/sphaerophoria Or on twitch twitch.tv/sphaerophoria Or sponsor me on github (no benefits) github.com/sponsors/sphaerophoria Intro Do any ROP ROP with local varaiables

Why it's here

1 person recommends this

What people say. Cited as the inspiration for implementing a defer mechanism in C89 using stack manipulation.

Moments people linked to

u/lbanca01in r/C_Programming • Recommends

Defer in c89 So here's another horrible idea that seems to work. Have fun roasting it! (especially for what it probably does to performance, just look at the output assembly...) If anyone has an idea on how to efficiently put everything on the stack \*\*somehow\*\* I would love to hear it! Also this idea was inspired from this [video Here's the code: https://godbolt.org/z/YbGhj33Ee
26View on Reddit