Skip to content

Commit 542f744

Browse files
authored
[FIX] regex which won't crash on large responses + don't echo request back (#87)
1 parent 6d9c7bb commit 542f744

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/providers/http/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ const HTTP_PROVIDER: Provider<'http'> = {
391391

392392
//remove asterisks to account for chunks in the middle of revealed strings
393393
if(!secretParams) {
394-
res = res.slice(bodyStart).replace(/(\*){3,}/g, '')
394+
res = res.slice(bodyStart).replace(/\*{3,}/g, '')
395395
}
396396

397397

src/server/handlers/claimTeeBundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const claimTeeBundle: RPCHandler<'claimTeeBundle'> = async(
3232

3333

3434
// Initialize response
35-
const res = ClaimTeeBundleResponse.create({ request: teeBundleRequest })
35+
const res = ClaimTeeBundleResponse.create({})
3636

3737
// 1. Verify TEE bundle (attestations + signatures) - this includes timestamp validation
3838
logger.info('Starting TEE bundle verification')

0 commit comments

Comments
 (0)