LibFuzzer support
This changeset contains:
- support for compiler sanitizers and sanitizer coverage in configure
- support for LibFuzzer
- fuzzy test for packet based on LibFuzzer
- fix for NAPTR RR parsing (found by LibFuzzer)
- limit for maximal number of RRs in a parsed packet
Merge request reports
Activity
- tests-fuzz/packet_libfuzzer.c 0 → 100644
11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17 #include <assert.h> 18 #include <stdint.h> 19 #include <stdio.h> 20 #include <signal.h> 21 22 #include "libknot/libknot.h" 23 24 int LLVMFuzzerTestOneInput(const unsigned char *data, size_t size) 25 { 26 uint8_t *copy = malloc(size); The configure changes should be verified by @ondrej :-)mentioned in commit 444c2122
Please register or sign in to reply