-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add strncpy model * Forgot to remove an edit * Adding model tests * Added strncpy c file and created a directory for all string modeling binaries * Update to argument ordering in manticore/native/models.py Co-authored-by: Eric Kilmer <eric.d.kilmer@gmail.com> * Removed dead code Co-authored-by: Eric Kilmer <eric.d.kilmer@gmail.com>
- Loading branch information
Showing
8 changed files
with
198 additions
and
7 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <stdio.h> | ||
#include <string.h> | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
#define LEN 5 | ||
|
||
int main() { | ||
char src[LEN]; | ||
char dst[LEN]; | ||
read(0, src, LEN); | ||
|
||
strncpy(dst, src, LEN - 2); | ||
return 0; | ||
} |
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