These are my blogs

and also my life

Stack Protection with a Canary

2021-06-11 c arm assembly

Buffer overflows can be detected by inserting a canary into a function. These canaries are inserted when a function’s stack frame is created. ... Read More

Finding Libriaries and Headers for C Programs in Unix

2021-05-27 c

Need to list the installed libraries on a Unix system? Want to use a library in C and don’t know the linker flags to use? Need to find where ... Read More

Implementing a Timeout for a read in C

2021-04-12 c

Need to wait a specified amount of time for a read call to return before giving up and continuing on? In Unix when we read from a file we can have a ... Read More

Timestamps in C

2020-12-02 c

In this post I’ll provide some ways to create, convert and print timestamps using C. We’ll first create a Unix epoch which corresponds to ... Read More

Disassembly of Recursion in C

2020-09-25 c assembly arm

Let’s disassemble a recursive function in C to ARM assembly. We can use the textbook example of a recursive factorial function. We’ll play ... Read More

Systemd: Timers

2020-06-30 unix c systemd

In the fourth post on how to create a service in systemd we will create a timer that will run every minute sending messages to our example foo service ... Read More

Systemd: A Service and a Socket

2020-06-26 unix c systemd

This is the third post on how to create a service in systemd. See the first post to create a autotools project and start/stop a daemon service. Or the ... Read More

Status, Reloading and Journalling in Systemd

2020-06-23 unix c systemd

This is the second post on how to create a service in systemd. In the first post we created an autotools project and were able to start, stop and get ... Read More

Viterbi Example

2020-05-01 c signal-processing

Here we go! In this post I’m going to go through how Viterbi Decoders work. There is a lot to cover since we need to touch on Convolutional ... Read More

I/O Multiplexing in Unix

2020-04-26 unix c

In Unix a process performs I/O on a single file descriptor at a time. When we talk about I/O on a file think read() and write() calls which are ... Read More