Blob/Binary type Value with null will crashed while calling func strdup_contents
MSYS2 x64
GLib2: 2.66.0-1
Gtk3: 3.24.23-1
libgda: 5.2.9
the demo code should return NULL like other types, but now it will crashed while executing:
Value blob_value = Value(typeof(Gda.Blob));
GLib.warning("Blob: %s", blob_value.strdup_contents());
Value binary_value = Value(typeof(Gda.Binary));
GLib.warning("Binary: %s", binary_value.strdup_contents());
the stacktrace as follow:
Program received signal SIGSEGV, Segmentation fault.
0x0000000063bbce76 in ?? () from C:\msys\mingw64\bin\libgda-5.0-4.dll
(gdb) bt
#0 0x0000000063bbce76 in ?? () from C:\msys\mingw64\bin\libgda-5.0-4.dll
#1 0x0000000063bbcf18 in ?? () from C:\msys\mingw64\bin\libgda-5.0-4.dll
#2 0x000007fedc56a552 in ?? () from C:\msys\mingw64\bin\libgobject-2.0-0.dll
#3 0x000007fedc56e0f5 in ?? () from C:\msys\mingw64\bin\libgobject-2.0-0.dll
#4 0x0000000000401656 in _vala_main (args=0x159ce30, args_length1=1) at ../src/main.vala:16
#5 0x0000000000401719 in main (argc=1, argv=0x159ce30) at ../src/main.vala:11
Edited by TAO ZUHONG