forked from qmonnet/rbpf
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elf: fail validation if writable .data sections are present (#240)
* elf: fail validation if writable sections are present * Featurize .bss reject Co-authored-by: Jack May <[email protected]>
- Loading branch information
1 parent
1992512
commit c56ccaa
Showing
7 changed files
with
90 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
typedef unsigned long int uint64_t; | ||
typedef unsigned char uint8_t; | ||
|
||
int val = 0; | ||
|
||
extern uint64_t entrypoint(const uint8_t *input) { | ||
val = 43; | ||
return 0; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
typedef unsigned long int uint64_t; | ||
typedef unsigned char uint8_t; | ||
|
||
int val = 42; | ||
|
||
extern uint64_t entrypoint(const uint8_t *input) { | ||
val = 43; | ||
return 0; | ||
} |
Binary file not shown.