- uninitialized variable 'previous_size' - incorrect Mat element access pattern via address arithmetic