Skip to content

Instantly share code, notes, and snippets.

; Function Attrs: nounwind uwtable
define i32 @single_atoi_bad(i8 signext %c) #0 {
%1 = sext i8 %c to i32
%2 = icmp eq i32 %1, 48
br i1 %2, label %3, label %4
; <label>:3 ; preds = %0
br label %41
; <label>:4 ; preds = %0
define i32 @single_atoi_bad(i8 signext %c) #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i8 %c, i8* %2, align 1
%3 = load i8* %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 48
br i1 %5, label %6, label %7
; <label>:6 ; preds = %0

Keybase proof

I hereby claim:

  • I am awruef on github.
  • I am awruef (https://keybase.io/awruef) on keybase.
  • I have a public key whose fingerprint is B604 84E1 4FB6 4A6F 6EAC A004 BCA8 38EC 4DC1 A2DB

To claim this, I am signing this object: