@stellar-expert/contract-wasm-interface-parser 6.0.1 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/contract-wasm-interface-parser",
3
- "version": "6.0.1",
3
+ "version": "6.1.0",
4
4
  "description": "Contract interface metadata parser for binary WASM",
5
5
  "author": "orbitlens <orbit@stellar.expert>",
6
6
  "license": "MIT",
@@ -30,6 +30,8 @@ export class WasmSectionReader {
30
30
  if (sectionType === 0) { //accumulate only custom sections
31
31
  const sectionStart = this.pointer
32
32
  const name = this.readString()
33
+ if (!/^[a-zA-Z0-9!@#$%^&*_+\-=:\\|\/]+$/.test(name))
34
+ continue //skip sections with malformed names
33
35
  length -= this.pointer - sectionStart
34
36
  sections.push({
35
37
  name,