CPython Internals: Your Guide to the Python 3 Interpreter by Anthony Shaw

CPython Internals: Your Guide to the Python 3 Interpreter by Anthony Shaw

Author:Anthony Shaw
Language: eng
Format: epub
Published: 2021-01-25T23:11:18+00:00


UndefinedBehaviorSanitizer (UBSan) is a fast undefined behavior detector. It can catch various kinds of undefined behavior during execution:

A misaligned or null pointer

A signed integer overflow

Conversion to, from, or between floating-point types

You can enable UBSan by running the following:

$ ./configure --with-undefined-behavior-sanitizer ...

UBSan is supported on the following operating systems:

Linux

macOS

NetBSD

FreeBSD

See the official documentation for more information.

UBSan has many configurations. Using

--with-undefined-behavior-sanitizer will set the undefined profile. To use another profile like nullability, run ./configure with the custom CFLAGS:

$ ./configure CFLAGS="-fsanitize=nullability" \ LDFLAGS="-fsanitize=nullability"



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.