 
      
    | You are here | mazzo.li | ||
| | | | | blog.oddbit.com | |
| | | | | Overview I was recently working with someone else's C source and I wanted to add some basic error checking without mucking up the code with a bunch of if statements and calls to perror. I ended up implementing a simple must function that checks the return value of an expression, and exits with an error if the return value is less than 0. You use it like this: must(fd = open("textfile.txt", O_RDONLY)); Or: | |
| | | | | xnux.eu | |
| | | | | ||
| | | | | ravendb.net | |
| | | | | I previously askedwhat the code below does, and mentioned that it should give interesting insight into the kind of... | |
| | | | | reverse.put.as | |
| | | This is a guest post by a young and talented Portuguese exploiter, Federico Bento. He won this year's Pwnie for Epic Achievement exploiting TIOCSTI ioctl. Days ago he posted a video demonstrating an exploit for CVE-2017-5123 and luckly for you I managed to convince him to do a write-up about it. I hope you enjoy his work. Thanks Federico! | ||