lidavidm opened a new issue, #667:
URL: https://github.com/apache/arrow-adbc/issues/667

   ```
   [ RUN      ] SnowflakeConnectionTest.MetadataGetObjectsTablesTypes
   =================================================================
   ==4401==ERROR: AddressSanitizer: heap-buffer-overflow on address 
0x6110000030c0 at pc 0x55ccc4d6f220 bp 0x7ffedecf4f00 sp 0x7ffedecf4ef8
   READ of size 4 at 0x6110000030c0 thread T0
       #0 0x55ccc4d6f21f in 
adbc_validation::ArrowArrayViewGetOffsetUnsafe(ArrowArrayView*, long) 
/home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation_util.cc:73
       #1 0x55ccc4c8e6ed in 
adbc_validation::ConnectionTest::TestMetadataGetObjectsTablesTypes() 
/home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation.cc:684
       #2 0x7fcb072fdb5d in void 
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, 
void>(testing::Test*, void (testing::Test::*)(), char const*) 
(/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x59b5d)
       #3 0x7fcb072fde30 in testing::Test::Run() 
(/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x59e30)
       #4 0x7fcb072fe1fe in testing::TestInfo::Run() 
(/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a1fe)
       #5 0x7fcb072fe553 in testing::TestSuite::Run() 
(/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a553)
       #6 0x7fcb07306fda in testing::internal::UnitTestImpl::RunAllTests() 
(/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x62fda)
       #7 0x7fcb072fe765 in testing::UnitTest::Run() 
(/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a765)
       #8 0x7fcb090d706e in main 
(/usr/share/miniconda3/envs/test/lib/libgtest_main.so.1.13.0+0x106e)
       #9 0x7fcb06571d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
       #10 0x7fcb06571e3f in __libc_start_main 
(/lib/x86_64-linux-gnu/libc.so.6+0x29e3f)
       #11 0x55ccc4b2b3e0  
(/home/runner/work/arrow-adbc/arrow-adbc/build/driver/snowflake/adbc-driver-snowflake-test+0x27d3e0)
   
   0x6110000030c0 is located 0 bytes to the right of 256-byte region 
[0x611000002fc0,0x6110000030c0)
   allocated by thread T0 here:
       #0 0x7fcb0916d3bb in __interceptor_realloc 
../../../../libsanitizer/asan/asan_malloc_linux.cpp:164
       #1 0x7fcb083ef2f8 in realloc_and_initialize 
/home/runner/go/pkg/mod/github.com/apache/arrow/go/[email protected]/arrow/memory/mallocator/mallocator.go:24
       #2 0x7fcb083ef3ee in _cgo_9d28762a85a6_C2func_realloc_and_initialize 
/tmp/go-build/cgo-gcc-prolog:79
       #3 0x7fcb076de720 in runtime.asmcgocall 
/opt/hostedtoolcache/go/1.18.6/x64/src/runtime/asm_amd64.s:821
   
   SUMMARY: AddressSanitizer: heap-buffer-overflow 
/home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation_util.cc:73 
in adbc_validation::ArrowArrayViewGetOffsetUnsafe(ArrowArrayView*, long)
   Shadow bytes around the buggy address:
     0x0c227fff85c0: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
     0x0c227fff85d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
     0x0c227fff85e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
     0x0c227fff85f0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
     0x0c227fff8600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   =>0x0c227fff8610: 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
     0x0c227fff8620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     0x0c227fff8630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     0x0c227fff8640: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
     0x0c227fff8650: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
     0x0c227fff8660: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
   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
     Shadow gap:              cc
   ==4401==ABORTING
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to