You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to write to a file, then read the result. I need to use FILE * pointers in C. What is the best way to do this with OSS-fuzz?
I am assuming that a file with a fixed name could cause conflicts during parallel fuzzing.
I am currently using the standard tmpfile() function. Are there any concerns about it?
For just reading fixed-size data, I used fmemopen(). This isn't suitable for writing to files though if we can't predict how much data will be written. There is a risk of exhausting the memory buffer.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am looking to write to a file, then read the result. I need to use
FILE *
pointers in C. What is the best way to do this with OSS-fuzz?I am assuming that a file with a fixed name could cause conflicts during parallel fuzzing.
I am currently using the standard
tmpfile()
function. Are there any concerns about it?For just reading fixed-size data, I used
fmemopen()
. This isn't suitable for writing to files though if we can't predict how much data will be written. There is a risk of exhausting the memory buffer.Beta Was this translation helpful? Give feedback.
All reactions