Skip to content

Commit

Permalink
Add a comment to remind ASAN users to compile interpreters with ASAN …
Browse files Browse the repository at this point in the history
…as well.

PiperOrigin-RevId: 471898444
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Sep 2, 2022
1 parent 111249d commit 8827a09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion upb/port_def.inc
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@

#undef UPB_FASTTABLE_SUPPORTED

/* ASAN poisoning (for arena) *************************************************/
/* ASAN poisoning (for arena).
* If using UPB from an interpreted language like Ruby, a build of the
* interpreter compiled with ASAN enbabled must be used in order to get sane and
* expected behavior.
*/

#if defined(__SANITIZE_ADDRESS__)
#define UPB_ASAN 1
Expand Down

0 comments on commit 8827a09

Please sign in to comment.