intel / wds

Wireless Display Software For Linux OS (WDS)
https://01.org/wds
GNU Lesser General Public License v2.1
511 stars 104 forks source link

Add libfuzzer style harness and cmake file #190

Closed bshastry closed 3 years ago

bshastry commented 5 years ago

Hello,

Since you are already fuzzing the rtsp parser, I thought it might be a useful addition to enrol this repo into the ossfuzz program.

This PR enables continuous fuzzing via https://github.com/google/oss-fuzz/pull/2895

bshastry commented 5 years ago

The fuzzer quickly finds a memory leak in error parsing

==3237==ERROR: LeakSanitizer: detected memory leaks           [35/1963]

Direct leak of 24 byte(s) in 1 object(s) allocated from:               
    #0 0x4f9acd in operator new(unsigned long) /src/llvm/projects/comp$
ler-rt/lib/asan/asan_new_delete.cpp:99:3                               
    #1 0x52c04b in error_lex(YYSTYPE*, void*) /src/wds/build/libwds/rt$
p/errorlexer.l:1478:20                                                 
    #2 0x4fe561 in wds_parse(void*, std::__1::unique_ptr<wds::rtsp::Me$
sage, std::__1::default_delete<wds::rtsp::Message> >&) /src/wds/libwds$rtsp/gen/parser.cpp:1870:16                                            
    #3 0x53b322 in wds::rtsp::Driver::Parse(std::__1::basic_string<cha$
, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std$
:__1::unique_ptr<wds::rtsp::Message, std::__1::default_delete<wds::rts$::Message> >&) /src/wds/libwds/rtsp/driver.cpp:81:7
...

for the payload NJx via call to https://github.com/intel/wds/pull/190/files#diff-a4a948e7da46c8d6404c6a2ae3a5f23fR37

bshastry commented 5 years ago

Dear wds developers,

If you are interested in taking this forward, could you please provide a primary contact email address that I could use to enrol the project into ossfuzz? (please see https://github.com/google/oss-fuzz/pull/2895/files#r329091829)

bshastry commented 4 years ago

Ping :-)

bshastry commented 3 years ago

Closing this PR since there has been no activity for over a year