[odb-users] odb crashes when querying object with section

Boris Kolpackov boris at codesynthesis.com
Tue May 23 09:50:34 EDT 2017


Hi Anton,

Anton Paymyshev <anton.paymyshev at gmail.com> writes:

> My analysis:
>
> - db->query<Test>() line runs object_statements<Test> construction which
>   leaves image_ field filled with garbage from heap. (Test case requires
>   "prepared" heap to be reproducible in release build)
> - then object_result_impl<Test>::load_image() gets "truncated" result from
>   "statement_->load()" and goes to access::object_traits_impl< ::Test,
>   id_sqlite >::grow which tries to set sec1_value capacity to previously
>   uninitialized value(0xcdcdcdcd).

Thanks for the testcase and the analysis. This appears to be the second part
of the bug that I (thought I) fixed earlier in this area[1]. I've fixed it
some more[2] (hopefully for good this time) and have built you a pre-release:

http://codesynthesis.com/~boris/tmp/odb/pre-release/b.3/

Let me know if there are any issues.

[1] http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=5d969f916178eb5e223d658dd55f5f2bc9ab526d
[2] http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=7ebcc590a5ca302f35805a025545a8d10ce4cf5f

Boris



More information about the odb-users mailing list