Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <stddef.h> | |
| 6 #include <stdint.h> | |
| 7 #include "u2f_message.h" | |
| 8 | |
| 9 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { | |
| 10 scoped_refptr<net::IOBufferWithSize> buf = | |
| 11 make_scoped_refptr(new net::IOBufferWithSize(size)); | |
|
Reilly Grant (use Gerrit)
2016/12/10 00:02:44
scoped_refptr<net::IOBufferWithSize> buf(
new
Casey Piper
2016/12/10 01:38:03
Done.
| |
| 12 memcpy(buf->data(), data, size); | |
| 13 scoped_refptr<device::U2fMessage> msg = | |
| 14 device::U2fMessage::CreateFromSerializedData(buf); | |
| 15 return 0; | |
| 16 } | |
| OLD | NEW |