[sr-dev] git:master:96d0b4ec: presence_xml: safety checks for pkg alloc and buffer size