|
|
|
|
|
by tlb
2945 days ago
|
|
The kernel programmer did, in this story. An example of such an information leak is: struct foo {
int a;
char b;
}
void send_foo_01() {
foo x {0, 1};
write(fd, &x, sizeof(foo));
}
which sends 3 bytes of the contents of the stack memory over the network, for almost every compiler except the one in the story. Running in a kernel, that could contain secrets. |
|