Giter Club home page Giter Club logo

Comments (3)

hunjmes avatar hunjmes commented on July 17, 2024

Looks like a struct definition mismatch, in my build:

#11 sk_pop_free_ex (sk=0x604000061b18, call_free_func=0x7efd0423de30 <sk_STACK_OF_X509_NAME_ENTRY_call_free_func>, free_func=0x7efd0423dd10 <local_sk_X509_NAME_ENTRY_free>)
    at .../src/crypto/stack/stack.c:136
#12 0x00007efd0423e6ab in sk_STACK_OF_X509_NAME_ENTRY_pop_free (free_func=0x7efd0423dd10 <local_sk_X509_NAME_ENTRY_free>, sk=0x604000061b18)
    at .../src/crypto/x509/x_name.c:75

In frame 12:

(gdb) ptype sk.stack
type = struct stack_st {
    int num;
    char **data;
    int sorted;
    int num_alloc;
    int (*comp)(const void *, const void *);
}

-- this is 32 bytes.

But, in frame 11:

(gdb) ptype *sk
type = struct stack_st {
    size_t num;
    void **data;
    int sorted;
    size_t num_alloc;
    OPENSSL_sk_cmp_func comp;
}

-- this is 40 bytes (because it has two size_t's, replaced in frame 12 by ints).

from aws-lc.

hunjmes avatar hunjmes commented on July 17, 2024

Above comment might be a red herring. Looks like the code in question uses struct stack_st throughout, rather than C++ stack_st. The objects look like valid struct stack_st objects. I don't know why we're getting the SEGV from ASan.

Not looking into this further, at this time.

from aws-lc.

hunjmes avatar hunjmes commented on July 17, 2024

Looks like mem.c and ASan don't get along, unless AWS-LC package is compiled with OPENSSL_ASAN defined, see https://github.com/aws/aws-lc/blob/main/crypto/mem.c#L248 . So this is a known issue with a work-around, and not a bug.

from aws-lc.

Related Issues (20)

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.