Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UB introduced by copying detail::FormatListN objects. (#59)
When copying a detail::FormatListN object, the m_formatterStore must also be copied, otherwise the pointer in the parent FormatList class are possibly invalid. This addresses the segfault explained in #58. The issue arises when makeFormatList returns an object which holds a pointer to memory created for the temporary object on the stack.
- Loading branch information