Comments (3)
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 int
s).
from aws-lc.
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.
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)
- Android ignores the "-Wa, --noexecstack" flag so remove or suppress warnings. HOT 1
- Add soname HOT 7
- Licensing
- ignored-attributes warning
- Uninitialised variable in `ec_GFp_mont_batch_get_window` HOT 2
- Readme is not synchronised with `aws-lc-verification` HOT 1
- ssl_transfer_supported for client SSL connection
- Compiling with zig for x86_64-windows-gnu fails due to X509_NAME and wincrypt.h HOT 3
- Plans to replace code under the OpenSSL license? HOT 2
- Fails to compile with clang 17 HOT 4
- Remove NASM requirement for windows builds HOT 2
- Failed to build AWS-LC on Ubuntu HOT 3
- redundant redeclaration of X509_OBJECT_new and X509_OBJECT_free HOT 2
- getrandom is not used on FreeBSD >= 12 HOT 1
- SSL_get_ciphers() lacks TLSv1.3 ciphersuites HOT 1
- FIPS branch fips-2022-11-02 failed to build on AL2 aarch64 HOT 4
- QUIC support HOT 4
- Error during Cross-Compiling aws-iot-device-sdk-python-v2 with make HOT 4
- Packages for RPM and DEB HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lc.