[sr-dev] git:5.2:9c3fd4b2: Revert "xcap_server: check before going to the end of the buffer"