Azure / azure-uamqp-c

AMQP library for C
Other
58 stars 62 forks source link

Fix double-free throughout amqp_definitions #447

Closed ewertons closed 7 months ago

ewertons commented 7 months ago

This is related to issue 84965 (work item 186232).

The bugs identified in open_get_offered_capabilities are correct. open_get_offered_capabilities is implemented in amqp_definitions.c, which is autogenerated from amqp_definitions_c.tt. amqp_definitions_c.tt is also used to autogerate functions for other AMQP composite types. By fixing amqp_definitions_c.tt (function in lines 317 to 494) this double-free bug pattern is being addressed for: