Changeset 77482 in vbox for trunk/include/iprt
- Timestamp:
- Feb 27, 2019 1:17:24 PM (6 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/fuzz.h
r76585 r77482 63 63 64 64 65 /** 66 * Fuzzing context type. 67 */ 68 typedef enum RTFUZZCTXTYPE 69 { 70 /** Invalid type. */ 71 RTFUZZCTXTYPE_INVALID = 0, 72 /** Original input data is a single binary large object (BLOB), from a file or similar. */ 73 RTFUZZCTXTYPE_BLOB, 74 /** Original input data is from a data stream like a network connection. */ 75 RTFUZZCTXTYPE_STREAM, 76 /** 32bit hack. */ 77 RTFUZZCTXTYPE_32BIT_HACK = 0x7fffffff 78 } RTFUZZCTXTYPE; 79 65 80 /** @name RTFUZZCTX_F_XXX - Flags for RTFuzzCtxCfgSetBehavioralFlags 66 81 * @{ */ … … 76 91 * @returns IPRT status code. 77 92 * @param phFuzzCtx Where to store the handle to the fuzzing context on success. 78 */ 79 RTDECL(int) RTFuzzCtxCreate(PRTFUZZCTX phFuzzCtx); 93 * @param enmType Fuzzing context data type. 94 */ 95 RTDECL(int) RTFuzzCtxCreate(PRTFUZZCTX phFuzzCtx, RTFUZZCTXTYPE enmType); 80 96 81 97 /** … … 242 258 RTDECL(int) RTFuzzCtxInputGenerate(RTFUZZCTX hFuzzCtx, PRTFUZZINPUT phFuzzInput); 243 259 244 /**245 * Mutates a raw buffer.246 *247 * @returns IPRT status code.248 * @param hFuzzCtx The fuzzing context handle.249 * @param pvBuf Pointer to the buffer to mutate.250 * @param cbBuf Size of the buffer iny bytes to mutate.251 * @param phFuzzInput Where to store the handle to the fuzzed input on success.252 */253 RTDECL(int) RTFuzzCtxMutateBuffer(RTFUZZCTX hFuzzCtx, void *pvBuf, size_t cbBuf,254 PRTFUZZINPUT phFuzzInput);255 256 260 257 261 /** … … 272 276 273 277 /** 274 * Queries the data pointer and size of the given fuzz ing input.278 * Queries the data pointer and size of the given fuzzed input blob. 275 279 * 276 280 * @returns IPRT status code … … 279 283 * @param pcb Where to store the size of the input data on success. 280 284 */ 281 RTDECL(int) RTFuzzInputQueryData(RTFUZZINPUT hFuzzInput, void **ppv, size_t *pcb); 285 RTDECL(int) RTFuzzInputQueryBlobData(RTFUZZINPUT hFuzzInput, void **ppv, size_t *pcb); 286 287 /** 288 * Processes the given data stream for a streamed fuzzing context. 289 * 290 * @returns IPRT status code. 291 * @param hFuzzInput The fuzzing input handle. 292 * @param pvBuf The data buffer. 293 * @param cbBuf Size of the buffer. 294 */ 295 RTDECL(int) RTFuzzInputMutateStreamData(RTFUZZINPUT hFuzzInput, void *pvBuf, size_t cbBuf); 282 296 283 297 /** … … 368 382 * @returns IPRT status code. 369 383 * @param phFuzzObs Where to store the fuzzing observer handle on success. 370 */ 371 RTDECL(int) RTFuzzObsCreate(PRTFUZZOBS phFuzzObs); 384 * @param enmType Fuzzing context data type. 385 */ 386 RTDECL(int) RTFuzzObsCreate(PRTFUZZOBS phFuzzObs, RTFUZZCTXTYPE enmType); 372 387 373 388 /** -
trunk/include/iprt/mangling.h
r77256 r77482 1038 1038 # define RTFuzzCtxCreateFromStateFile RT_MANGLER(RTFuzzCtxCreateFromStateFile) 1039 1039 # define RTFuzzCtxInputGenerate RT_MANGLER(RTFuzzCtxInputGenerate) 1040 # define RTFuzzCtxMutateBuffer RT_MANGLER(RTFuzzCtxMutateBuffer)1041 1040 # define RTFuzzCtxRelease RT_MANGLER(RTFuzzCtxRelease) 1042 1041 # define RTFuzzCtxReseed RT_MANGLER(RTFuzzCtxReseed) … … 1045 1044 # define RTFuzzCtxStateExportToFile RT_MANGLER(RTFuzzCtxStateExportToFile) 1046 1045 # define RTFuzzInputAddToCtxCorpus RT_MANGLER(RTFuzzInputAddToCtxCorpus) 1047 # define RTFuzzInputQueryData RT_MANGLER(RTFuzzInputQueryData) 1046 # define RTFuzzInputMutateStreamData RT_MANGLER(RTFuzzInputMutateStreamData) 1047 # define RTFuzzInputQueryBlobData RT_MANGLER(RTFuzzInputQueryBlobData) 1048 1048 # define RTFuzzInputQueryDigestString RT_MANGLER(RTFuzzInputQueryDigestString) 1049 1049 # define RTFuzzInputRelease RT_MANGLER(RTFuzzInputRelease)
Note:
See TracChangeset
for help on using the changeset viewer.