travis: turn on nonnull-attribute on Fuzzit
This commit is contained in:
parent
4b381a9ef6
commit
9bd2422ac3
|
@ -7,6 +7,7 @@
|
||||||
#include "dns-type.h"
|
#include "dns-type.h"
|
||||||
#include "escape.h"
|
#include "escape.h"
|
||||||
#include "hexdecoct.h"
|
#include "hexdecoct.h"
|
||||||
|
#include "memory-util.h"
|
||||||
#include "resolved-dns-dnssec.h"
|
#include "resolved-dns-dnssec.h"
|
||||||
#include "resolved-dns-packet.h"
|
#include "resolved-dns-packet.h"
|
||||||
#include "resolved-dns-rr.h"
|
#include "resolved-dns-rr.h"
|
||||||
|
@ -555,7 +556,7 @@ int dns_resource_record_new_address(DnsResourceRecord **ret, int family, const u
|
||||||
|
|
||||||
#define FIELD_EQUAL(a, b, field) \
|
#define FIELD_EQUAL(a, b, field) \
|
||||||
((a).field ## _size == (b).field ## _size && \
|
((a).field ## _size == (b).field ## _size && \
|
||||||
memcmp((a).field, (b).field, (a).field ## _size) == 0)
|
memcmp_safe((a).field, (b).field, (a).field ## _size) == 0)
|
||||||
|
|
||||||
int dns_resource_record_payload_equal(const DnsResourceRecord *a, const DnsResourceRecord *b) {
|
int dns_resource_record_payload_equal(const DnsResourceRecord *a, const DnsResourceRecord *b) {
|
||||||
int r;
|
int r;
|
||||||
|
|
Binary file not shown.
|
@ -21,7 +21,7 @@ export PATH="$HOME/.local/bin/:$PATH"
|
||||||
# https://github.com/systemd/systemd/pull/12771#issuecomment-502139157 are sorted out at least.
|
# https://github.com/systemd/systemd/pull/12771#issuecomment-502139157 are sorted out at least.
|
||||||
# TODO: "null" should probably be added too. On OSS-Fuzz it was turned off in https://github.com/google/oss-fuzz/pull/674
|
# TODO: "null" should probably be added too. On OSS-Fuzz it was turned off in https://github.com/google/oss-fuzz/pull/674
|
||||||
# TODO: figure out what to do about unsigned-integer-overflow: https://github.com/google/oss-fuzz/issues/910
|
# TODO: figure out what to do about unsigned-integer-overflow: https://github.com/google/oss-fuzz/issues/910
|
||||||
export SANITIZER="address -fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,unsigned-integer-overflow,vla-bound,vptr -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr"
|
export SANITIZER="address -fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,unsigned-integer-overflow,vla-bound,vptr,nonnull-attribute -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr,nonnull-attribute"
|
||||||
tools/oss-fuzz.sh
|
tools/oss-fuzz.sh
|
||||||
|
|
||||||
FUZZING_TYPE=${1:-sanity}
|
FUZZING_TYPE=${1:-sanity}
|
||||||
|
|
Loading…
Reference in a new issue