[sr-dev] git:master:67bd0803: lcr: check return for rewrite_uri() and do memset with size of alloc