CSAPP Attack Lab

Description 分为两种attack: 1)Code Injection Attacks 2)Return-Oriented Programming 由于executable program的执行逻辑是要上传到CMU评分系统,我们自己本地做的时候要在comm

CSAPP Bomb Lab

Description csapp bomb lab. We are given an object file named bomb. We have six bombs to defuse. command objdump objdump -d bomb > bomb.dump readelf -x .rodata bomb 可以查看object file中的data segment,包含所有的static va

Leetcode 91. Decode Ways

leetcode 91. Decode Ways A message containing letters from A-Z is being encoded to numbers using the following mapping: ‘A’ -> 1 ‘B’ -> 2 … ‘Z’ -> 26 Given a non-empty string containing only digits, determine the total number of ways to decode it. The answer is guaranteed to fit in a 32-bit integer. Example 1: Input: s = “12” Output: 2 Explanation: It could be decoded as “AB”

LRU Cache

LRU(Least Recent Used) LRU是操作系统的一种cache algorithm 实际生产中也可能被应用到。想象一下公司业务要求对于频繁查询的信息(从DB中取值)存储在Hash Tab