@abaplint/core 2.99.2 → 2.99.4

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.
@@ -239,6 +239,9 @@ class CurrentScope {
239
239
  return undefined;
240
240
  }
241
241
  const typePoolName = name.split("_")[0];
242
+ if (typePoolName.length <= 2 || typePoolName.length > 5) {
243
+ return undefined;
244
+ }
242
245
  const typePool = this.reg.getObject("TYPE", typePoolName);
243
246
  if (typePool === undefined) {
244
247
  return undefined;
@@ -253,6 +256,14 @@ class CurrentScope {
253
256
  return undefined;
254
257
  }
255
258
  const typePoolName = name.split("_")[0];
259
+ if (typePoolName.length <= 2 || typePoolName.length > 5) {
260
+ return undefined;
261
+ }
262
+ if (new ddic_1.DDIC(this.reg).lookupNoVoid(name) !== undefined) {
263
+ // this is tricky, it should not do recursion when parsing the type pool itself,
264
+ // think about DTEL ABAP_ENCOD vs TYPE ABAP
265
+ return undefined;
266
+ }
256
267
  const typePool = this.reg.getObject("TYPE", typePoolName);
257
268
  if (typePool === undefined) {
258
269
  return undefined;
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.99.2";
66
+ return "2.99.4";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.99.2",
3
+ "version": "2.99.4",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",