Azure / azure-uamqp-c

AMQP library for C
Other
60 stars 63 forks source link

Fix double-free throughout amqp_definitions #447

Closed ewertons closed 9 months ago

ewertons commented 9 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: