Skip to content
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

bug-1906021: strip whitespace from Android_CPU_ABI2 and other string fields #6824

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willkg
Copy link
Contributor

@willkg willkg commented Nov 27, 2024

This changes the CopyFromRawCrashRule to strip the right side of string field values. I haven't seen anything in crash reports so far where whitespace at the end of a crash annotation value is significant so I think this is safe.

If it turns out not to be safe, we can extend CopyFromRawCrashRule to look at a "transforms" field to glean how it should transform the value after copying it. This would be helpful for the increasing number of fields that are comma or semi-colon delimited, too.

To test:

  1. process a Fenix crash report
  2. view the Android_CPU_ABI2 value in the raw crash--it has \r\n at the end
  3. view the android_cpu_abi2 value in the processed crash--it does not have \r\n at the end

…fields

This changes the CopyFromRawCrashRule to strip the right side of string
field values. I haven't seen anything in crash reports so far where
whitespace at the end of a crash annotation value is significant so I
think this is safe.

If it turns out not to be safe, we can extend CopyFromRawCrashRule to
look at a "transforms" field to glean how it should transform the value
after copying it. This would be helpful for the increasing number of
fields that are comma or semi-colon delimited, too.
@willkg willkg requested a review from a team as a code owner November 27, 2024 20:53
@willkg willkg changed the title bug-1906021: strip whitespace from Android_CPU_ABI2 and other string … bug-1906021: strip whitespace from Android_CPU_ABI2 and other string fields Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant