LibreDWG v0.12.4.4608 & commit f2dea29 exists to contain a heap use-after-free via bit_copy_chain.
gnu libredwg