Hi *,

I'm missing something obvious, probably because I was looking at these bytes 
for too long. I constructed this SPB:

2, 2, 116, 3, 0, 0, 0, 83, 114, 112, 111, 0, 1, 0, 0, 68, 55, 57, 67, 56, 51, 
52, 70, 66, 65, 49, 54, 67, 50, 54, 69, 50, 56, 53, 65, 67, 57, 69, 57, 50, 48, 
57, 68, 65, 57, 68, 69, 55, 53, 57, 65, 51, 66, 57, 56, 55, 57, 48, 48, 70, 54, 
54, 65, 57, 50, 69, 65, 54, 57, 70, 69, 55, 55, 68, 54, 54, 65, 55, 70, 52, 69, 
51, 57, 49, 48, 48, 53, 69, 67, 67, 49, 69, 48, 54, 48, 65, 67, 48, 51, 49, 68, 
48, 55, 57, 51, 48, 66, 48, 50, 69, 70, 48, 68, 67, 70, 48, 51, 70, 57, 52, 66, 
57, 65, 65, 66, 66, 53, 53, 65, 49, 68, 54, 69, 54, 55, 69, 67, 70, 65, 53, 68, 
51, 51, 55, 65, 70, 65, 65, 56, 51, 67, 54, 67, 48, 49, 53, 70, 55, 52, 57, 54, 
49, 65, 70, 51, 67, 56, 66, 66, 67, 53, 53, 66, 57, 68, 51, 67, 54, 52, 70, 51, 
66, 49, 69, 51, 52, 66, 65, 65, 51, 51, 55, 66, 67, 69, 66, 48, 65, 56, 55, 68, 
54, 68, 50, 53, 53, 70, 68, 48, 69, 56, 48, 56, 57, 54, 50, 56, 54, 55, 68, 57, 
54, 56, 55, 54, 54, 49, 67, 68, 57, 52, 66, 48, 57, 65, 56, 54, 53, 55, 69, 49, 
51, 67, 51, 53, 53, 54, 68, 49, 51, 48, 65, 69, 52, 65, 70, 56, 50, 50, 49, 65, 
49, 67, 56, 65, 51, 57, 57, 55, 51, 49

But I'm getting famous "Invalid clumplet buffer structure: buffer end before 
end of clumplet - clumplet too long". Trying to read this back manually:

2, 2
isc_spb_version, isc_spb_current_version

116, 3, 0, 0, 0, 83, 114, 112
isc_spb_auth_plugin_name, 3, "Srp" 

111, 0, 1, 0, 0, 68, 55, 57, 67, 56, 51, 52, 70, 66, 65, 49, 54, 67, 50, 54, 
69, 50, 56, 53, 65, 67, 57, 69, 57, 50, 48, 57, 68, 65, 57, 68, 69, 55, 53, 57, 
65, 51, 66, 57, 56, 55, 57, 48, 48, 70, 54, 54, 65, 57, 50, 69, 65, 54, 57, 70, 
69, 55, 55, 68, 54, 54, 65, 55, 70, 52, 69, 51, 57, 49, 48, 48, 53, 69, 67, 67, 
49, 69, 48, 54, 48, 65, 67, 48, 51, 49, 68, 48, 55, 57, 51, 48, 66, 48, 50, 69, 
70, 48, 68, 67, 70, 48, 51, 70, 57, 52, 66, 57, 65, 65, 66, 66, 53, 53, 65, 49, 
68, 54, 69, 54, 55, 69, 67, 70, 65, 53, 68, 51, 51, 55, 65, 70, 65, 65, 56, 51, 
67, 54, 67, 48, 49, 53, 70, 55, 52, 57, 54, 49, 65, 70, 51, 67, 56, 66, 66, 67, 
53, 53, 66, 57, 68, 51, 67, 54, 52, 70, 51, 66, 49, 69, 51, 52, 66, 65, 65, 51, 
51, 55, 66, 67, 69, 66, 48, 65, 56, 55, 68, 54, 68, 50, 53, 53, 70, 68, 48, 69, 
56, 48, 56, 57, 54, 50, 56, 54, 55, 68, 57, 54, 56, 55, 54, 54, 49, 67, 68, 57, 
52, 66, 48, 57, 65, 56, 54, 53, 55, 69, 49, 51, 67, 51, 53, 53, 54, 68, 49, 51, 
48, 65, 69, 52, 65, 70, 56, 50, 50, 49, 65, 49, 67, 56, 65, 51, 57, 57, 55, 51, 
49
isc_spb_specific_auth_data, 256, <data>

Looks OK to me, but obviously it is not. Both the isc_spb_auth_plugin_name and 
isc_spb_specific_auth_data should be wide 
(https://github.com/FirebirdSQL/firebird/blob/B3_0_Release/src/common/classes/ClumpletReader.cpp#L324),
 right? What am I missing?

-- 
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to