Skip to content

Add more ubsan crashes. #2959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/clusterfuzz/_internal/crash_analysis/crash_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'Invalid-null-return',
'Misaligned-address',
'No-return-value',
'Out-of-range',
'Pointer-overflow',
'Potential-null-reference',
'Undefined-shift',
Expand Down
5 changes: 5 additions & 0 deletions src/clusterfuzz/stacktraces/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@
r'.*implicit conversion from type.*')
UBSAN_INCORRECT_FUNCTION_POINTER_REGEX = re.compile(
r'.*call to function [^\s]+ through pointer to incorrect function type.*')
UBSAN_IMPLICIT_CONVERSION_REGEX = re.compile(
'.*implicit conversion from type.*')
UBSAN_INDEX_OOB_REGEX = re.compile(r'.*out of bounds for type.*')
UBSAN_UNSIGNED_INTEGER_OVERFLOW_REGEX = re.compile(
r'.*unsigned integer overflow.*')
Expand All @@ -267,6 +269,7 @@
UBSAN_NULL_POINTER_WRITE_REGEX = re.compile(r'.*store to null pointer.*')
UBSAN_OBJECT_SIZE_REGEX = re.compile(
r'.*address .* with insufficient space for an object of type.*')
UBSAN_OUT_OF_RANGE_REGEX = re.compile(r'.*out of range \[.*')
UBSAN_POINTER_OVERFLOW_REGEX = re.compile(
r'.*((addition|subtraction) of unsigned offset |'
r'pointer index expression with base |'
Expand Down Expand Up @@ -646,10 +649,12 @@
(UBSAN_MISALIGNED_ADDRESS_REGEX, 'Misaligned-address'),
(UBSAN_NO_RETURN_VALUE_REGEX, 'No-return-value'),
(UBSAN_NULL_ARGUMENT_REGEX, 'Invalid-null-argument'),
(UBSAN_IMPLICIT_CONVERSION_REGEX, 'Implicit-conversion'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hogo6002 added this separately in another PR, so now these Implicit-conversion changes are now duplicate. Can you please remove?

(UBSAN_NULL_POINTER_READ_REGEX, 'Null-dereference READ'),
(UBSAN_NULL_POINTER_REFERENCE_REGEX, 'Null-dereference'),
(UBSAN_NULL_POINTER_WRITE_REGEX, 'Null-dereference WRITE'),
(UBSAN_OBJECT_SIZE_REGEX, 'Object-size'),
(UBSAN_OUT_OF_RANGE_REGEX, 'Out-of-range'),
(UBSAN_POINTER_OVERFLOW_REGEX, 'Pointer-overflow'),
(UBSAN_RETURNS_NONNULL_ATTRIBUTE_REGEX, 'Invalid-null-return'),
(UBSAN_SHIFT_ERROR_REGEX, 'Undefined-shift'),
Expand Down
Loading