Giter Site home page Giter Site logo

freestanding_sanitizers's People

Contributors

j-montgomery avatar jm-nuro avatar

Stargazers

 avatar

Watchers

 avatar  avatar

freestanding_sanitizers's Issues

Implement missing UBSAN handler APIs

The following UBSAN APIs are either misnamed or missing from the current implementation:

  • Handle add_overflow
  • Handle cfi_bad_type
  • Handle cfi_check_fail
  • Handle dynamic type cache miss
  • Handle float cast overflow v1 and v2
  • Handle function type mismatch v1

Implement missing UBSAN user interface functions

The following interface functions are missing from the current implementation. As user-code may implement these, they're part of the public API libfreesan has to implement as well.

  • __ubsan_on_report
  • __ubsan_default_options
  • __ubsan_get_current_report_data

Expand the test suite to cover all APIs

It'd be best if we could somehow port the ubsan tests already used by compiler-rt. Alternatively, continue with the current system of manually written tests.

Support compilation under -Werror=switch-default

switch statements in the ubsan handlers do not implement default case statements in places where we're relying on the compiler to provide us with one of a finite number of object types. However, the compiler isn't smart enough to realize that it's enforcing its own rules and can throw an error if the library is built with overly strict settings. libfreesan should provide a default case statement to deal with those cases gracefully.

Add __ubsan_handle_type_mismatch handler

Older versions of Clang and somewhat newer GCCs (e.g. <= v9.x) implement type mismatch as
__ubsan_handle_type_mismatch() instead of the corresponding *_v1 APIs. To improve backwards compatibility, libfreesan should support the older APIs:

  • __ubsan_handle_type_mismatch()
  • __ubsan_handle_nonnull_return()
  • __ubsan_handle_nullability_return()
  • __ubsan_handle_function_type_mismatch()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.