s3: Fix Coverity ID 242710 Untrusted pointer read