Guest User

Untitled

a guest
Apr 8th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. commit fd1d05a01a704db47f6e60425c0ac3e1bd4cffbf
  2. Author: Jeff Brown <jeffbrown@google.com>
  3. Date: Fri Nov 11 15:03:05 2011 -0800
  4.  
  5. Fix bug in TextLayoutCacheKey handling embedded nulls.
  6.  
  7. We were not passing the length of the UTF-16 string to
  8. String16::setTo. As a result, it was copying the contents of
  9. the text up to the first null it found.
  10.  
  11. First problem, these strings are not typically null terminated!
  12.  
  13. Second problem, if the string contained a null character, then
  14. we might truncate it. However, we only truncated the string
  15. when the copy constructor was invoked (say, when we called
  16. get() on the cache) but not in internalTextCopy() (before
  17. adding the key to the cache).
  18.  
  19. As a result of the second problem, we would first search
  20. the cache for a key that matched a partially copied truncated
  21. string (potentially reading uninitialized memory that followed it).
  22. Finding none, we would add the entry to the cache using
  23. the correct key.
  24.  
  25. If the cache already had a value associated with the correct key,
  26. then the put would fail, returning false. Charging ever onwards,
  27. we would add the size of the entry to the cache size.
  28.  
  29. Proceeding in this manner, it was possible for the cache to
  30. believe it had less remaining space than it really did. At that
  31. point, it was possible for the cache to evict all entries and
  32. yet still not think it had room to add a new one, so it would
  33. continue trying to make space indefinitely.
  34.  
  35. Bug: 5576812
  36. Change-Id: I05251594f6b2da0a5dc09f7200f04fe9100ec766
  37.  
  38. commit 829a6f208cbdcc9eecaa59d086b27b413e3227ee
  39. Author: Jeff Brown <jeffbrown@google.com>
  40. Date: Fri Nov 4 19:01:44 2011 -0700
  41.  
  42. Fix a leak in Parcel::writeBlob.
  43.  
  44. Was mistakenly assuming that Parcel::writeFileDescriptor took
  45. ownership of the fd that was passed in. It does not!
  46. Added some comments and a default parameter to allow the caller
  47. to specify whether it wishes the Parcel to take ownership.
  48.  
  49. Bug: 5563374
  50. Change-Id: I5a12f51d582bf246ce90133cce7690bb9bca93f6
  51.  
  52. commit 6d25e3400cee4ca6965a9fd22222a8389c08380c
  53. Author: Andreas Huber <andih@google.com>
  54. Date: Thu Nov 3 11:00:21 2011 -0700
  55.  
  56. DO NOT MERGE Poll input data with a small timeout and don't consume a full core.
  57.  
  58. Change-Id: I3c288698920fe6ead0df24a52330483609821a41
  59. related-to-bug: 5549263
  60.  
  61. commit 287c1e66feaf6cee7c0789d7f82940d3856eafc2
  62. Author: The Android Automerger <android-build@android.com>
  63. Date: Wed Nov 2 21:08:38 2011 -0700
  64.  
  65. Revert "Merge "Avoid duplicate dialogs leading to NPE" into ics-mr0"
  66.  
  67. This reverts commit 7f00c22b7fa7b38b644585c0a3c6faadc5def94c, reversing
  68. changes made to 451fa13e82ea1226895b41282fdb33bf9fea5d19.
  69.  
  70. commit b6b117624b460fec104be94977ed64d190473182
  71. Author: The Android Automerger <android-build@android.com>
  72. Date: Wed Nov 2 21:04:32 2011 -0700
  73.  
  74. Revert "Merge "BatteryService(jni): properly handle read's return value" into ics-mr0"
  75.  
  76. This reverts commit f0ad147fc33cf55cd9427010b2cdb3eb89b9eec3, reversing
  77. changes made to bd9b1528051a1b257768fdbc5077a2d4473b02dd.
  78.  
  79. commit f17756f8e60ba192d1c222d9d180b41fdbdbec32
  80. Author: The Android Automerger <android-build@android.com>
  81. Date: Wed Nov 2 20:59:04 2011 -0700
  82.  
  83. Revert "Merge "Update camera continuous autofocus javadoc." into ics-mr0"
  84.  
  85. This reverts commit 4b6353ea0265bfed52d0637abd1b17596ce25ff0, reversing
  86. changes made to af675222f6340a8a9edbe9e8635014a18521e5e0.
  87.  
  88. commit 54b212c75e17ffb963b1266c31f1908a1a70ca71
  89. Author: The Android Automerger <android-build@android.com>
  90. Date: Wed Nov 2 20:58:26 2011 -0700
  91.  
  92. Revert "Merge "Fix potential segfault in RS watchdog." into ics-mr0"
  93.  
  94. This reverts commit af675222f6340a8a9edbe9e8635014a18521e5e0, reversing
  95. changes made to 6e91e5b689a3eb8e6a6f3c038322b8044a9d6670.
  96.  
  97. commit 50b193c82d0458a1c225f3042f84618fe3408482
  98. Author: The Android Automerger <android-build@android.com>
  99. Date: Wed Nov 2 20:58:00 2011 -0700
  100.  
  101. Revert "Merge "Improve the slow query instrumentation." into ics-mr0"
  102.  
  103. This reverts commit 2d280f754e32e556407df05d977cfabdfff1c070, reversing
  104. changes made to 2cc1c5d067736f221554be593c2ba2c96390f847.
  105.  
  106. commit beb470af433368bb423c0efd57de77c0a933e7bd
  107. Author: The Android Automerger <android-build@android.com>
  108. Date: Wed Nov 2 10:18:09 2011 -0700
  109.  
  110. Revert "Merge "BatteryService(jni): properly handle read's return value" into ics-mr0"
  111.  
  112. This reverts commit f0ad147fc33cf55cd9427010b2cdb3eb89b9eec3, reversing
  113. changes made to bd9b1528051a1b257768fdbc5077a2d4473b02dd.
  114.  
  115. commit 8e31988d264785f05b97606a09d2d65de0d59904
  116. Author: The Android Automerger <android-build@android.com>
  117. Date: Wed Nov 2 10:14:18 2011 -0700
  118.  
  119. Revert "Merge "Update camera continuous autofocus javadoc." into ics-mr0"
  120.  
  121. This reverts commit 4b6353ea0265bfed52d0637abd1b17596ce25ff0, reversing
  122. changes made to af675222f6340a8a9edbe9e8635014a18521e5e0.
  123.  
  124. commit 5070dd097caa6f935803a933117fe6b3000bda47
  125. Author: The Android Automerger <android-build@android.com>
  126. Date: Wed Nov 2 10:07:57 2011 -0700
  127.  
  128. Revert "Merge "Fix potential segfault in RS watchdog." into ics-mr0"
  129.  
  130. This reverts commit af675222f6340a8a9edbe9e8635014a18521e5e0, reversing
  131. changes made to 6e91e5b689a3eb8e6a6f3c038322b8044a9d6670.
  132.  
  133. commit 5db81e1f1c19ab93c1126a9092213812629c9ece
  134. Author: The Android Automerger <android-build@android.com>
  135. Date: Wed Nov 2 10:05:33 2011 -0700
  136.  
  137. Revert "Merge "Improve the slow query instrumentation." into ics-mr0"
  138.  
  139. This reverts commit 2d280f754e32e556407df05d977cfabdfff1c070, reversing
  140. changes made to 2cc1c5d067736f221554be593c2ba2c96390f847.
  141.  
  142. commit 116d12b87f319767618e2c0827544412e7e3fd67
  143. Author: The Android Automerger <android-build@android.com>
  144. Date: Wed Nov 2 04:41:24 2011 -0700
  145.  
  146. Revert "Merge "BatteryService(jni): properly handle read's return value" into ics-mr0"
  147.  
  148. This reverts commit f0ad147fc33cf55cd9427010b2cdb3eb89b9eec3, reversing
  149. changes made to bd9b1528051a1b257768fdbc5077a2d4473b02dd.
Add Comment
Please, Sign In to add comment