nanana37 / eacces-modifier

Make "Permission denied" detailed.
0 stars 0 forks source link

and then cmp #13

Closed nanana37 closed 3 weeks ago

nanana37 commented 3 months ago

Fails to get what the variable is comparing with.

if.end8:                                          ; preds = %do.end
  %9 = load ptr, ptr %nd.addr, align 8, !dbg !8410
  %dir_mode = getelementptr inbounds %struct.nameidata, ptr %9, i32 0, i32 20, !dbg !8412
  %10 = load i16, ptr %dir_mode, align 4, !dbg !8412
  %conv = zext i16 %10 to i32, !dbg !8410
  %and = and i32 %conv, 514, !dbg !8413
  %cmp = icmp ne i32 %and, 514, !dbg !8414
  br i1 %cmp, label %if.then10, label %if.end11, !dbg !8415

Name: dir_mode

Current log & Ideal log are below:

// Wrong log (now)
nd->dir_mode & 514 == 0
// Correct log
nd->dir_mode & 514 == 514
nanana37 commented 3 weeks ago

https://github.com/nanana37/eacces-modifier/pull/18