[opus] Adding a decoder fuzz target
Felicia Lim
flim at google.com
Fri Feb 10 19:44:14 UTC 2017
Thanks for your comments, Ralph and Jean-Marc.
Please find attached the amended patch:
- decodes a sequence of input packets rather than just one (I'm planning on
using the Opus test vectors as the seed corpus)
- decides on decoder setup and FEC independently of the packet data
- uses Opus functions to parse ToC
Cheers,
Felicia
On Sun, Jan 29, 2017 at 9:48 PM Jean-Marc Valin <jmvalin at jmvalin.ca> wrote:
> Hi Felicia,
>
> Here's a few comments/questions on your patch:
>
> > static void ParseToc(const uint8_t toc, TocInfo *const info) {
>
> Any particular reason you don't use the Opus functions for parsing the
> ToC? It seems like opus_packet_get_nb_samples(),
> opus_packet_get_bandwidth(), and opus_packet_get_nb_channels() should do
> the trick.
>
> > int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
>
> How is that function supposed to work? I noticed that it will only
> decode a single packet. How does the fuzzer handle testing for bugs that
> only happen for a given sequence of input packets?
>
> Cheers,
>
> Jean-Marc
>
>
>
>
> On 27/01/17 02:48 PM, Felicia Lim wrote:
> > Hi all,
> >
> > I'm working on fuzzing Opus with OSS-Fuzz and have started with the
> > decoder. Attached is a patch to add the corresponding fuzz target.
> > Please let me know if there are any concerns?
> >
> > Thanks,
> > Felicia
> >
> >
> > _______________________________________________
> > opus mailing list
> > opus at xiph.org
> > http://lists.xiph.org/mailman/listinfo/opus
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20170210/8570012c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-decoder-fuzz-target.patch
Type: text/x-patch
Size: 5036 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/opus/attachments/20170210/8570012c/attachment.bin>
More information about the opus
mailing list