projects
/
web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
412c802
)
add some comments to code snippets
author
Ralf Jung
<post@ralfj.de>
Mon, 11 Apr 2022 22:05:56 +0000
(18:05 -0400)
committer
Ralf Jung
<post@ralfj.de>
Mon, 11 Apr 2022 22:05:56 +0000
(18:05 -0400)
personal/_posts/2022-04-11-provenance-exposed.md
patch
|
blob
|
history
diff --git
a/personal/_posts/2022-04-11-provenance-exposed.md
b/personal/_posts/2022-04-11-provenance-exposed.md
index 56b7203e9d9a4a07aeb68291d50214313f2a7237..5265df60efbcfa4da7b7f33fed1498eed98d0b83 100644
(file)
--- a/
personal/_posts/2022-04-11-provenance-exposed.md
+++ b/
personal/_posts/2022-04-11-provenance-exposed.md
@@
-78,7
+78,7
@@
static int uwu(int *restrict x, int *restrict y) {
int *y2 = y-1;
uintptr_t y2addr = (uintptr_t)y2;
int *y2 = y-1;
uintptr_t y2addr = (uintptr_t)y2;
- int *ptr = (int*)y2addr;
+ int *ptr = (int*)y2addr;
// <-- using y2addr
*ptr = 1;
return *x;
*ptr = 1;
return *x;
@@
-104,7
+104,7
@@
static int uwu(int *restrict x, int *restrict y) {
int *ptr = (int*)y2addr;
*ptr = 1;
int *ptr = (int*)y2addr;
*ptr = 1;
- return 0;
+ return 0;
// <-- hard-coded return value
}
int main() {
}
int main() {