Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

70,156 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Mohit Mishra
Mohit Mishravor 1 Jahr

Credits: @tsoding

Profilbild von Ivica Bogosavljevic
Ivica Bogosavljevicvor 1 Jahr

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

Profilbild von マリク
マリクvor 1 Jahr

yeah, I need to watch this guy videos

Profilbild von Mohit Mishra
Mohit Mishravor 1 Jahr

everyone should 😉

Profilbild von Karsten Aalderks 🚴‍♀️ 🎻 🎒 ⛽️
Karsten Aalderks 🚴‍♀️ 🎻 🎒 ⛽️vor 1 Jahr

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!

Profilbild von Nic Barker
Nic Barkervor 1 Jahr

Only malloc, never free, buy more ram - tsoding

Profilbild von Твиттерский эксперт №1
Твиттерский эксперт №1vor 1 Jahr

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

Profilbild von Medha Jain
Medha Jainvor 1 Jahr

Can u share the link

Profilbild von Mohit Mishra
Mohit Mishravor 1 Jahr

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

Profilbild von PELock
PELockvor 1 Jahr

Will do!

Ähnliche Videos