Understanding Stack Canaries and Code Protection

Introduction: In the realm of computer security, the protection of software applications against various vulnerabilities and attacks is of paramount importance. One such crucial defense mechanism is the stack protection feature, often implemented through the use of a stack canary. This safeguard is especially prevalent in languages like C, where manual memory management can introduce… Continue reading Understanding Stack Canaries and Code Protection

Oops ! Volatile

While translating source code to machine code, compiler applies various optimisations. Compiler cleans excess machine code to reduce executable size and increase speed of execution, saves memory, CPU cycle etc. if a variable needs to be changed from outside compiler should not apply optimisation, since an optimisation might not check the variable at all in… Continue reading Oops ! Volatile