Get the latest tech news

Consistently Making Wrong Decisions Whilst Writing Recreational C


day, 17 June 2024 For the past few days I have had a lot of fun polishing a small program written in C. I call it “Trip” and the idea is to automatically intercept specific Libc functions and simulate their failure.

Webpresence of Philip Kaludercic Start| Index| About| ⚛ Feed| Contact For the past few days I have had a lot of fun polishing a small program written in C. I call it “ Trip ” and the idea is to automatically intercept specific Libc functions and simulate their failure. My intention is to make it easier to provoke specific errors that would usually only occur when the operating system refuses or is incapable of providing the (finite) resources it virtualises (like memory, time and access to peripheral devices). Here,$sprintf is a macro (we needlessly make use of the fact that dollar-signs are (apparently) valid constituents of identifiers), which will format some data into a local variable called cmd, visible only in the subsequent block.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of wrong decisions

wrong decisions

Photo of recreational c

recreational c