Elektrine lite

← Feed

@jschauma@mstdn.social

2026-10-13 13:46 UTC

Advanced Programming in the #UNIX Environment Week 5: Using gdb(1) to understand pointers Now that we know how to use the debugger, let's examine memory locations in a running program and use that to better understand how pointers and arrays work in the C programming language as well as how a buffer overflow manifests. https://youtu.be/hr-rn0yUhAw

Replies (1)

  • @jschauma@mstdn.social 2026-10-14 17:28

    Advanced Programming in the #UNIX Environment Tool Tip: sizeof != strlen Since we just had some fun with gdb(1) and looking at strings, let's also quickly discuss how the "sizeof" operator differs fundamentally from the "strlen(3)" library function and why it is important to not confuse the two. Preparing this video then made me write the manual page for sizeof now shipped with #FreeBSD: https://man.freebsd.org/cgi/man.cgi?query=sizeof https://youtu.be/FyPqII2rewA?si=srSzuVrryTyPyVXl

    Open ##5061745