Age | Commit message (Collapse) | Author | Files | Lines |
|
Put it under build macros for libstdc++.
Change-Id: I9797bb23ce02e176e9cc13a158c5f9f8d5866cb8
|
|
Perfrom annotation before deallocation, when *this is correct.
Change-Id: I438cbf7dec143247185f6abda7033a7733b35ffb
|
|
COW-strings are used as an exception strings still (yet), and since char buffer
starts at "this + 1" ("this" in COW basic_string<>), where "this" is properly aligned,
sizeof(*this) may be not aligned by 8 (12 bytes under i686 arch with current
compiler), so asan annotations will fail.
Still testing with all configurations.
Change-Id: Ic7bb665a58d22f7e8ab979fc548fc96973473f32
|
|
Found this case during aarch64 build: __str may be null and setting new length
with clear() will cause error.
Change-Id: I93ad10b4c15ed293d1228243591a1ec1ed22c4d9
|
|
Change-Id: I6d329a54ed9cfdd42103bb881c602d1d74f566a6
|
|
Keep buffer alive after relocations.
Change-Id: I71d0a6a2f23779b6c802661ae0a0095fdb1fd45c
|
|
Change-Id: I2bd419bca8ae332b11e0ea29126a6935a34df70a
|
|
Change-Id: I9dda8d2fb748660faa21c548a13199066c5dbf7f
|
|
Change-Id: I7743c915f3146b500127cc7134333e76fdcaa69e
|
|
Change-Id: If22d32dae870ba1af0f32e3141c0399e39b51d37
|
|
Change-Id: I1bcab282b2f48bf85f6686e70ef6bb1471d07150
|
|
String internal buffer for small-string optimization a). may be not aligned by 8
bytes (as class member) and b). not poisoned by asan properly with redzones.
Need to perform this changes carefully as there are other libstdc++ headers that
relies on std::string default structure and size by checking that with static
assertations. So we cannot simply change sso-buffer size without changing them.
For now simply immitate that sso-buffer is already full at given point of usage.
Change-Id: I525716813c2a31c7d9e0d2a180d8112b54009fa6
|
|
std::string local buffer used in small-string optimization may be not aligned by
8 as asan requires on armv7l/i586 archs (small buffer in struct from libstdc++
lib passed on stack, which can be aligned by 4), so enable fully dynamic strings
to fully annotate container.
Note: Enabling fully dynamic string changes the library ABI.
Add "libstdcxx_fully_dynamic_string=1" macros to project config for enabling.
Change-Id: I4e7a7dc373ac0f2624d1fc854ae82956ff4402b3
|
|
This reverts commit 58f80958e199bbd7d97fede7a242642d7c5f6310.
|
|
Change-Id: Id2194d6b276837beeb0b16f5b3fc6a88dcfc9b96
|
|
Change-Id: I37681b4f67e5f117ec90d4b0c19b9e00be7233cd
|
|
Change-Id: I751550619f9d5b50fde9b3503b40c1969e76bd32
|
|
Change-Id: I4fd4047913db2bf54b9660cb9bf1b0e0f6048793
|
|
Change-Id: I80fab9c1dba086d0fc1283412296c6b32c673966
|
|
Change-Id: I88d7f0db343afc70f3bed7fdc6d7ed0fe4a78a09
|
|
PR libstdc++/81338 correctly manage string capacity
Backport from mainline
2017-07-10 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/81338
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
Declare basic_stringbuf to be a friend.
* include/bits/sstream.tcc (basic_stringbuf::overflow)
[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
length to buffer length.
* testsuite/27_io/basic_stringstream/assign/81338.cc: New.
Change-Id: Ib654bfbe7b0d15561d0c617576262a678a1eb15c
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@251652 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Remove unused extern from asan.
Change-Id: I4ef6a88cd57101020a02930d1947abf48093161a
|
|
Change-Id: I9c9de63d3e7dde7fee7f302c718ca0d4e069dc5f
|
|
Change-Id: Ibfc55a6d79bce2d1f339431fe8aac580ac570cd6
|
|
Change-Id: I715bfa4f01c686c01a37be0ce65982ab89283acb
|
|
Change-Id: Icd644b6bf10d4b35255db9df4d3d48bb1ce85175
|
|
Devel asan for annotations.
This reverts commit bd2063e96e13b17900cc9c5582fec66a8f3590b8.
|
|
Do some dev stuff.
This reverts commit eb333e9b0d7afd2e4a21baa6c46225aa9438533c.
Change-Id: I8dc99f1db98d3d2cd993cd5540f52efdae02e8e0
|
|
Change-Id: I7902929e57505a33eba948b2c6856890f61e5235
|
|
Change-Id: Icaa7561c2d19e2d1942c7ce997a6b5543534411e
|
|
Change-Id: Ie74d71ceae9f9b9a25a8300762e6550c114ccdc9
|
|
This reverts commit ca4fb28ca20fcf8ff648fbd2a7fcb772c3b169fc.
|
|
Change-Id: I5bfd15f2b26b4086aa5bd33f3d959df7a6e6047b
|
|
Change-Id: Ida1819b120a0211630c626a7c95dff3e5c880030
|
|
Change-Id: If1268c053135a8408bf4b3da2d6ccb4ed1014745
|
|
Change-Id: Ib3044086a1fbae5b3fab1ec975b3168c4acbfe9a
|
|
Change-Id: I36baa8c71109131355f40e0a70183eac8e5785b0
|
|
Change-Id: I010fdb76c19d4bec42e6c9f85ee277bcb8960b08
|
|
Change-Id: I33d22c8cd90779469cddfdf31258684f022063cb
|
|
Change-Id: I79c236e198a6cf30c1f925d9a0098b41a7531ae3
|
|
_GLIBCXX_ADDRESS_SANITIZER_ANNOTATIONS."
This reverts commit abfb6214333484da4bf58914fd456793e899e7c1.
|
|
libtool doesn't get flags from gcc-force-options, checking flag globally.
Change-Id: I66c9eaee75f55e7c59cd33f8c82ccaed0e2a1538
|
|
Change-Id: I2df305b5ad4d68f18812b10af3b7406f3b439d10
|
|
Change-Id: I3aeec2f497184ef13d3eb59a3e704c4d04b93596
|
|
Change-Id: Icdf7400902e67255c6a39a8aea918460e277062f
|
|
Change-Id: Ide6a2fff92adfad93845ca7d820d29f93d906d26
|
|
Change-Id: Ib10852fb3767c78ae1ea119c869d059d071c4d53
|
|
Change-Id: If9e6c01f7278044dc047ff910d86fb8b40b85b87
|
|
Change-Id: I551ea9b3e0936df86c5e5bb65e076d74e49b048a
|
|
Change-Id: I7ad9a91d9b82271be067f81e63e9355f1c60ac55
|