Loading video...

Video Failed to Load

Go Home

Advanced C Pro Tip: malloc() returns NULL only in one case

70,155 views • 1 year ago •via X (Twitter)

10 Comments

Mohit Mishra's profile picture
Mohit Mishra1 year ago

Credits: @tsoding

Ivica Bogosavljevic's profile picture
Ivica Bogosavljevic1 year ago

malloc can return a valid pointer and then, when you try to write to it, it crashes. it's like a poor person with a fake gucci bag

マリク's profile picture
マリク1 year ago

yeah, I need to watch this guy videos

Mohit Mishra's profile picture
Mohit Mishra1 year ago

everyone should 😉

Karsten Aalderks 🚴‍♀️ 🎻 🎒 ⛽️'s profile picture
Karsten Aalderks 🚴‍♀️ 🎻 🎒 ⛽️1 year ago

In 1987 we used a virtual memory routine from Marc Adler under MS-DOS and scrolled 16GB of Oracle V.5 Data in our own text window!

Nic Barker's profile picture
Nic Barker1 year ago

Only malloc, never free, buy more ram - tsoding

Твиттерский эксперт №1's profile picture
Твиттерский эксперт №11 year ago

What is he doing? Checking the value returned by malloc with ASSERT? 🤦🤦‍♀️🤦‍♂️

Medha Jain's profile picture
Medha Jain1 year ago

Can u share the link

Mohit Mishra's profile picture
Mohit Mishra1 year ago

it was shared on the discord channel with me. Let me check if I can find the video for this

PELock's profile picture
PELock1 year ago

Will do!

Related Videos