Those patches were suppose to protect against a memcpy from a null pointer, which can be problematic on some systems:
* https://github.com/kamailio/kamailio/issues/2913
Is this happening only when assigning `$aa`, or happens for any assignment done to `$var(...)`?