Comments (2)
Just created a small test and it shows that without reopening the file the contents will be presented to the program as they were when opened. Overwriting the file doesn't affect the output of read.
#include<stdio.h>
#include<stdlib.h>
int main(){
FILE* fd=fopen("test.dat","r");
char* buf=(char*)malloc(4);;
while(1){
fread(buf,1,4,fd);
printf("buf: %02x %02x %02x %02x\n", buf[0], buf[1], buf[2], buf[3]);
getchar();
fseek(fd,0,SEEK_SET);
}
return 0;
}
from kernel-fuzzer-for-xen-project.
Hm I guess then we should be opening a fresh fd and closing it in get_input.
from kernel-fuzzer-for-xen-project.
Related Issues (20)
- Report crash when tracing fails HOT 1
- Fail to fork xen domain when running on AMD processor HOT 12
- [FAQ request] How my target runs exactly? What rules are there for harnessing? HOT 3
- Scaling HOT 7
- PT initialization fails when mapping PT buffer HOT 26
- Paging mode not set during harness setup HOT 3
- Saving and restoring setup state: Device model spawn failed HOT 5
- Performance monitoring HOT 2
- Network setting problem HOT 2
- Unable to request new process from fork server (OOM?) HOT 3
- Error installing debian iso HOT 2
- When installing debian every time I am unable to connect to a network mirror and access wifi from within the vm HOT 22
- Too early input file read HOT 1
- Handling 0 length inputs (and/or improve IPC) HOT 2
- AFL++ communication error - Pipe read returns 0 HOT 7
- Error building Xen HOT 2
- VM Network issue HOT 1
- VM network settings failed HOT 6
- Unable to request new process from fork server (OOM?) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kernel-fuzzer-for-xen-project.