[sr-dev] git:master:441acf64: app_java: fix writing over the size of allocated buffer