Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The first check (signatureVerificationResult == 0x3CA5965A
) determines whether signatureVerificationResult
has the correct and expected value.”
A block of code is set as follows:
if (signatureVerificationResult == 0x3CA5965A) { // Hamming distance check passed, now perform a second check using // the inverse of the variable if (~signatureVerificationResult != 0xC35A69A5) { Log_fault(error_type); } else { Allow_application_to_run(); // Attacker wants to get here // through glitching } }
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “SAE J2497 is a communication protocol used in commercial trucks to allow the exchange of data between the tractor and the trailer, such as the ABS trailer status lamp.”
Tips or important notes
Appear like this.