Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSAN: getentropy() is unsupported #1173

Open
guidovranken opened this issue Dec 7, 2019 · 0 comments
Open

MSAN: getentropy() is unsupported #1173

guidovranken opened this issue Dec 7, 2019 · 0 comments

Comments

@guidovranken
Copy link

MSAN will detect uninitialized memory after a call to

int getentropy(void *buffer, size_t length);

Example program:

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
    unsigned char x[128];
    if ( getentropy(x, 128) == -1 ) abort();

    /* Branch on x[0] */
    if ( x[0] == 0 ) {
        return 10;
    }
    return 0;
}
absl-federation-github pushed a commit to abseil/abseil-cpp that referenced this issue Jun 2, 2021
--
b2a781121ff72fb485b7e67539d5e4ff1eb66df2 by Gennadiy Rozental <rogeeff@google.com>:

Consistently use absl::flat_hash_map instead of std::map in Flags implementation.

PiperOrigin-RevId: 377132816

--
9ab83a154d8f22d51fed0092bf94245b5af1f498 by Derek Mauro <dmauro@google.com>:

Workaround for MSAN being unable to see through getentropy().

google/sanitizers#1173

PiperOrigin-RevId: 377097059

--
8d28e921442d1b246c26f3200f21027557c47657 by Greg Falcon <gfalcon@google.com>:

Disable stack_consumption_test in tsan builds.

A recent tsan change broke the way this test-only utility was counting stack usage.

PiperOrigin-RevId: 377053169
GitOrigin-RevId: b2a781121ff72fb485b7e67539d5e4ff1eb66df2
Change-Id: Ib56356f8128f6c083f32b950091f3a56d9e2cd51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant