summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2010-10-20 00:36:17 -0700
committerBrian Carlstrom <bdc@google.com>2011-03-24 23:21:58 -0700
commit0422b9ab2f9819f1d905710fd2a109259ceec5eb (patch)
tree23c2ebf915fd94cf03e1a49cb40ba50d8f7625e9 /annotations/generate_annotated_java_files.py
parent44fa6764d0f235032cc64fb4ecd7018140a2d5d8 (diff)
Fix initialization races in X509CertImpl DO NOT MERGE
X509CertImpl instances can be shared between threads without a caller knowing due to the CERT_CACHE in X509CertFactoryImpl. In some cases, initialization of pairs of fields such as notBefore/notAfter and sigAlgOID/sigAlgName were protected by checking if only was one of the two values were initialized. This could lead to one thread half initializing a pair and a second thread seeing the half initialized pair, would assume both halves were initialized, returning an uninitialized value. Even in the lazy initialization of single fields there was no use of volatile or synchonized to be properly safe. git cherry-pick -e ef6370c1b62edf75dc7c3e5411468b55627e037d http://code.google.com/p/android/issues/detail?id=11870 Bug: 2295023 Change-Id: I82ff6e2742b3562e06fe3988dff1071b8ef5e82b
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions