|
Message-ID: <871rlmuw6o.fsf@oldenburg2.str.redhat.com> Date: Wed, 08 Jul 2020 12:40:15 +0200 From: Florian Weimer <fweimer@...hat.com> To: Alexander Scherbatiy <alexander.scherbatiy@...l-sw.com> Cc: musl@...ts.openwall.com Subject: Re: pthread_getspecific(3) with negative key * Alexander Scherbatiy: > The pthread_getspecific(3) specification describes: > "The pthread_getspecific() function shall return the thread-specific > data value associated with the given key. If no thread-specific data > value is associated with key, then the value NULL shall be returned. " POSIX says this: | The effect of calling pthread_getspecific() or pthread_setspecific() | with a key value not obtained from pthread_key_create() or after key | has been deleted with pthread_key_delete() is undefined. So no check for a valid key is required. Thanks, Florian
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.