Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
TheĀ pn_data_vfill() method in codec.c:571 has the symbol and string types interchanged. The function documentation states:
/* Format codes: code: AMQP-type (arguments) ... S: symbol (char*) s: string (char*) ... */
but uses these the other way around, ie s for symbol and S for string:
if (code == 'S') { err = pn_data_put_string(data, pn_bytes(size, start)); } else { err = pn_data_put_symbol(data, pn_bytes(size, start)); }
Guidance is needed on whether to fix the reversal and keep the stated codes, or reverse the codes.