Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 870578 Details for
Bug 914185
app-admin/passwordsafe-1.17.0 fails tests (PYTHON-3.12-SYSTEM): because of a stack-buffer-overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
1-LastTest.log
1-LastTest.log (text/plain), 8.99 KB, created by
Agostino Sarubbo
on 2023-09-14 13:18:53 UTC
(
hide
)
Description:
1-LastTest.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2023-09-14 13:18:53 UTC
Size:
8.99 KB
patch
obsolete
>Start testing: Sep 14 15:09 CEST >---------------------------------------------------------- >1/1 Testing: Coretests >1/1 Test: Coretests >Command: "/var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0_build/src/test/coretest" >Directory: /var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0_build/src/test >"Coretests" start time: Sep 14 15:09 CEST >Output: >---------------------------------------------------------- >[==========] Running 84 tests from 23 test suites. >[----------] Global test environment set-up. >[----------] 1 test from AESTest >[ RUN ] AESTest.aes_test >[ OK ] AESTest.aes_test (1 ms) >[----------] 1 test from AESTest (1 ms total) > >[----------] 2 tests from AliasShortcutTest >[ RUN ] AliasShortcutTest.Alias >[ OK ] AliasShortcutTest.Alias (0 ms) >[ RUN ] AliasShortcutTest.Shortcut >[ OK ] AliasShortcutTest.Shortcut (0 ms) >[----------] 2 tests from AliasShortcutTest (1 ms total) > >[----------] 4 tests from FileV3Test >[ RUN ] FileV3Test.EmptyFile >[ OK ] FileV3Test.EmptyFile (6 ms) >[ RUN ] FileV3Test.HeaderTest >[ OK ] FileV3Test.HeaderTest (4 ms) >[ RUN ] FileV3Test.ItemTest >[ OK ] FileV3Test.ItemTest (4 ms) >[ RUN ] FileV3Test.UnknownPersistencyTest >[ OK ] FileV3Test.UnknownPersistencyTest (4 ms) >[----------] 4 tests from FileV3Test (20 ms total) > >[----------] 5 tests from ItemAttTest >[ RUN ] ItemAttTest.EmptyItems >[ OK ] ItemAttTest.EmptyItems (0 ms) >[ RUN ] ItemAttTest.UUIDs >[ OK ] ItemAttTest.UUIDs (0 ms) >[ RUN ] ItemAttTest.ImpExp >[ OK ] ItemAttTest.ImpExp (4 ms) >[ RUN ] ItemAttTest.CopyCtor >[ OK ] ItemAttTest.CopyCtor (5 ms) >[ RUN ] ItemAttTest.Getters_n_Setters >[ OK ] ItemAttTest.Getters_n_Setters (0 ms) >[----------] 5 tests from ItemAttTest (9 ms total) > >[----------] 2 tests from OSTest >[ RUN ] OSTest.testMedia >[ OK ] OSTest.testMedia (13 ms) >[ RUN ] OSTest.testPath >[ OK ] OSTest.testPath (0 ms) >[----------] 2 tests from OSTest (13 ms total) > >[----------] 2 tests from BlowFishTest >[ RUN ] BlowFishTest.Null1Ktest >[ OK ] BlowFishTest.Null1Ktest (0 ms) >[ RUN ] BlowFishTest.VKtests >[ OK ] BlowFishTest.VKtests (1 ms) >[----------] 2 tests from BlowFishTest (1 ms total) > >[----------] 7 tests from FileV4Test >[ RUN ] FileV4Test.EmptyFile >[ OK ] FileV4Test.EmptyFile (45 ms) >[ RUN ] FileV4Test.HeaderTest >[ OK ] FileV4Test.HeaderTest (36 ms) >[ RUN ] FileV4Test.ItemTest >[ OK ] FileV4Test.ItemTest (37 ms) >[ RUN ] FileV4Test.MulitKeysTest >[ OK ] FileV4Test.MulitKeysTest (182 ms) >[ RUN ] FileV4Test.AttTest >[ OK ] FileV4Test.AttTest (47 ms) >[ RUN ] FileV4Test.HdrItemAttTest >[ OK ] FileV4Test.HdrItemAttTest (47 ms) >[ RUN ] FileV4Test.CoreRWTest >[ OK ] FileV4Test.CoreRWTest (64 ms) >[----------] 7 tests from FileV4Test (461 ms total) > >[----------] 7 tests from ItemDataTest >[ RUN ] ItemDataTest.EmptyItems >[ OK ] ItemDataTest.EmptyItems (0 ms) >[ RUN ] ItemDataTest.CopyCtor >[ OK ] ItemDataTest.CopyCtor (0 ms) >[ RUN ] ItemDataTest.Assignment >[ OK ] ItemDataTest.Assignment (0 ms) >[ RUN ] ItemDataTest.Getters_n_Setters >[ OK ] ItemDataTest.Getters_n_Setters (0 ms) >[ RUN ] ItemDataTest.PlainTextSerialization >[ OK ] ItemDataTest.PlainTextSerialization (0 ms) >[ RUN ] ItemDataTest.PasswordHistory >================================================================= >==44==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd132045e0 at pc 0x565339fbbd4e bp 0x7ffd132043f0 sp 0x7ffd13203bb8 >READ of size 352 at 0x7ffd132045e0 thread T0 > #0 0x565339fbbd4d in wcslen (/var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0_build/src/test/coretest+0x106d4d) > #1 0x56533a2684a5 in std::char_traits<wchar_t>::length(wchar_t const*) /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/char_traits.h:540:9 > #2 0x56533a2684a5 in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, S_Alloc::SecureAlloc<wchar_t>>::assign(wchar_t const*) /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/basic_string.h:1673:6 > #3 0x56533a2684a5 in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, S_Alloc::SecureAlloc<wchar_t>>::operator=(wchar_t const*) /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/basic_string.h:812:22 > #4 0x56533a2684a5 in PWSUtil::ConvertToDateTimeString[abi:cxx11](long const&, PWSUtil::TMC) /var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0/src/core/Util.cpp:531:9 > #5 0x56533a192fd1 in CreatePWHistoryList(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, S_Alloc::SecureAlloc<wchar_t>> const&, unsigned long&, unsigned long&, std::vector<PWHistEntry, std::allocator<PWHistEntry>>&, PWSUtil::TMC) /var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0/src/core/PWHistory.cpp:111:7 > #6 0x56533a08b0fd in ItemDataTest_PasswordHistory_Test::TestBody() /var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0/src/test/ItemDataTest.cpp:185:3 > #7 0x7f4cfdf0c8a6 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (/usr/lib64/libgtest.so.1.14.0+0x5c8a6) > #8 0x7f4cfdef3e4d in testing::Test::Run() (/usr/lib64/libgtest.so.1.14.0+0x43e4d) > #9 0x7f4cfdef4004 in testing::TestInfo::Run() (/usr/lib64/libgtest.so.1.14.0+0x44004) > #10 0x7f4cfdef41ee in testing::TestSuite::Run() (/usr/lib64/libgtest.so.1.14.0+0x441ee) > #11 0x7f4cfdf0174b in testing::internal::UnitTestImpl::RunAllTests() (/usr/lib64/libgtest.so.1.14.0+0x5174b) > #12 0x7f4cfdf0cf36 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (/usr/lib64/libgtest.so.1.14.0+0x5cf36) > #13 0x7f4cfdef43e3 in testing::UnitTest::Run() (/usr/lib64/libgtest.so.1.14.0+0x443e3) > #14 0x56533a0dacb3 in RUN_ALL_TESTS() /usr/include/gtest/gtest.h:2317:73 > #15 0x56533a0dacb3 in main /var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0/src/test/coretest.cpp:30:12 > #16 0x7f4cfce23c89 (/lib64/libc.so.6+0x23c89) > #17 0x7f4cfce23d44 in __libc_start_main (/lib64/libc.so.6+0x23d44) > #18 0x565339f54030 in _start (/var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0_build/src/test/coretest+0x9f030) > >Address 0x7ffd132045e0 is located in stack of thread T0 at offset 416 in frame > #0 0x56533a2680cf in PWSUtil::ConvertToDateTimeString[abi:cxx11](long const&, PWSUtil::TMC) /var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0/src/core/Util.cpp:499 > > This frame has 5 object(s): > [32, 64) 'ret' (line 500) > [96, 416) 'datetime_str' (line 502) > [480, 536) 'st_s' (line 504) <== Memory access at offset 416 partially underflows this variable > [576, 584) 'ref.tmp' (line 508) <== Memory access at offset 416 partially underflows this variable > [608, 616) 'ref.tmp20' (line 529) <== Memory access at offset 416 partially underflows this variable >HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork > (longjmp and C++ exceptions *are* supported) >SUMMARY: AddressSanitizer: stack-buffer-overflow (/var/tmp/portage/app-admin/passwordsafe-1.17.0/work/pwsafe-1.17.0_build/src/test/coretest+0x106d4d) in wcslen >Shadow bytes around the buggy address: > 0x7ffd13204300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x7ffd13204380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x7ffd13204400: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 > 0x7ffd13204480: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 > 0x7ffd13204500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >=>0x7ffd13204580: 00 00 00 00 00 00 00 00 00 00 00 00[f2]f2 f2 f2 > 0x7ffd13204600: f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 > 0x7ffd13204680: f8 f2 f2 f2 f8 f3 f3 f3 00 00 00 00 00 00 00 00 > 0x7ffd13204700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x7ffd13204780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x7ffd13204800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >Shadow byte legend (one shadow byte represents 8 application bytes): > Addressable: 00 > Partially addressable: 01 02 03 04 05 06 07 > Heap left redzone: fa > Freed heap region: fd > Stack left redzone: f1 > Stack mid redzone: f2 > Stack right redzone: f3 > Stack after return: f5 > Stack use after scope: f8 > Global redzone: f9 > Global init order: f6 > Poisoned by user: f7 > Container overflow: fc > Array cookie: ac > Intra object redzone: bb > ASan internal: fe > Left alloca redzone: ca > Right alloca redzone: cb >==44==ABORTING ><end of output> >Test time = 0.63 sec >---------------------------------------------------------- >Test Failed. >"Coretests" end time: Sep 14 15:09 CEST >"Coretests" time elapsed: 00:00:00 >---------------------------------------------------------- > >End testing: Sep 14 15:09 CEST
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 914185
:
870577
| 870578