Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Covscan - Invalid Dereference #100

Open
justin-stephenson opened this issue Apr 22, 2022 · 0 comments
Open

Covscan - Invalid Dereference #100

justin-stephenson opened this issue Apr 22, 2022 · 0 comments

Comments

@justin-stephenson
Copy link
Collaborator

justin-stephenson commented Apr 22, 2022

1. Defect type: [FORWARD_NULL]
3. cockpit-session-recording/dist/index.js:447143: null_check: Comparing "matches" to a null-like value implies that "matches" might be null-like.
5. cockpit-session-recording/dist/index.js:447151: property_access: Accessing a property of null-like value "matches".
# 447149|   
# 447150|   
# 447151|->       switch (t = matches[0][0]) {
# 447152|           /* Delay */
# 447153|           case "+":
Collapse
2. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:429845: null_check: Comparing the type of "item" with "undefined" implies that "item" might be equal to "undefined".
5. cockpit-session-recording/dist/index.js:429845: property_access: Accessing a property of null-like value "item".
# 429843|   
# 429844|   function isKindFile(item) {
# 429845|->   return (typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && item !== null && item.kind === 'file';
# 429846|   }
# 429847|   
Collapse
3. Defect type: [FORWARD_NULL]
8. cockpit-session-recording/dist/index.js:418400: null_check: Comparing "newChild" to a null-like value implies that "newChild" might be null-like.
14. cockpit-session-recording/dist/index.js:418417: var_deref_model: Passing "null" or "undefined" value "newChild" to "reconcileChildrenArray", which calls it or accesses a property of it.
# 418415|   
# 418416|       if (isArray$1(newChild)) {
# 418417|->       return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
# 418418|       }
# 418419|   
Collapse
4. Defect type: [FORWARD_NULL]
1. cockpit-session-recording/dist/index.js:401676: assign_undefined: Assigning: "match" = "undefined".
4. cockpit-session-recording/dist/index.js:401682: var_deref_model: Passing "null" or "undefined" value "match" to "config._locale.eraYearOrdinalParse", which calls it or accesses a property of it.
# 401680|   
# 401681|           if (config._locale.eraYearOrdinalParse) {
# 401682|->             array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
# 401683|           } else {
# 401684|               array[YEAR] = parseInt(input, 10);
Collapse
5. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:377674: null_check: Comparing "array" to a null-like value implies that "array" might be null-like.
4. cockpit-session-recording/dist/index.js:377677: property_access: Accessing a property of null-like value "array".
# 377675|   
# 377676|     while (++index < length) {
# 377677|->     if (predicate(array[index], index, array)) {
# 377678|         return true;
# 377679|       }
Collapse
6. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:377546: null_check: Comparing "array" to a null-like value implies that "array" might be null-like.
4. cockpit-session-recording/dist/index.js:377551: property_access: Accessing a property of null-like value "array".
# 377549|   
# 377550|     while (++index < length) {
# 377551|->     var value = array[index];
# 377552|       if (predicate(value, index, array)) {
# 377553|         result[resIndex++] = value;
Collapse
7. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:377389: null_check: Comparing "values" to a null-like value implies that "values" might be null-like.
4. cockpit-session-recording/dist/index.js:377393: property_access: Accessing a property of null-like value "values".
# 377391|     this.__data__ = new MapCache;
# 377392|     while (++index < length) {
# 377393|->     this.add(values[index]);
# 377394|     }
# 377395|   }
Collapse
8. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:377311: null_check: Comparing "entries" to a null-like value implies that "entries" might be null-like.
4. cockpit-session-recording/dist/index.js:377315: property_access: Accessing a property of null-like value "entries".
# 377313|     this.clear();
# 377314|     while (++index < length) {
# 377315|->     var entry = entries[index];
# 377316|       this.set(entry[0], entry[1]);
# 377317|     }
Collapse
9. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:377250: null_check: Comparing "entries" to a null-like value implies that "entries" might be null-like.
4. cockpit-session-recording/dist/index.js:377254: property_access: Accessing a property of null-like value "entries".
# 377252|     this.clear();
# 377253|     while (++index < length) {
# 377254|->     var entry = entries[index];
# 377255|       this.set(entry[0], entry[1]);
# 377256|     }
Collapse
10. Defect type: [FORWARD_NULL]
2. cockpit-session-recording/dist/index.js:377207: null_check: Comparing "entries" to a null-like value implies that "entries" might be null-like.
4. cockpit-session-recording/dist/index.js:377211: property_access: Accessing a property of null-like value "entries".
# 377209|     this.clear();
# 377210|     while (++index < length) {
# 377211|->     var entry = entries[index];
# 377212|       this.set(entry[0], entry[1]);
# 377213|     }
Collapse
11. Defect type: [FORWARD_NULL]
1. cockpit-session-recording/dist/index.js:284332: assign_undefined: Assigning: "push_prev" = "undefined".
17. cockpit-session-recording/dist/index.js:284409: call: Calling the null-like value "push_prev".
# 284407|         }
# 284408|   
# 284409|->       push_prev(true);
# 284410|   
# 284411|         // Join all of the member texts together, separated with commas,
Collapse
12. Defect type: [REVERSE_INULL]
1. cockpit-session-recording/dist/index.js:102582: deref: Accessing a property of "sort".
2. cockpit-session-recording/dist/index.js:102588: check_after_deref: Checking "sort === null" suggests "sort" may be null, but it has already been used as a function or its properties have been accessed on all paths leading to the check.
# 102586|           extraParams: {
# 102587|               sortBy: sort.sortBy,
# 102588|->             onSort: sort === null || sort === void 0 ? void 0 : sort.onSort
# 102589|           }
# 102590|       }
Collapse
13. Defect type: [REVERSE_INULL]
1. cockpit-session-recording/dist/index.js:15775: alias: Assigning: "loadingVariant" = "_a["loadingVariant"]".
2. cockpit-session-recording/dist/index.js:15824: deref: Accessing a property of "loadingVariant".
3. cockpit-session-recording/dist/index.js:15824: check_after_deref: Checking "loadingVariant === null" suggests "loadingVariant" may be null, but it has already been used as a function or its properties have been accessed on all paths leading to the check.
# 15822|                   }
# 15823|                   else if (loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.text) {
# 15824|->                     renderableItems.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_SelectOption__WEBPACK_IMPORTED_MODULE_12__["SelectOption"], { isLoad: true, key: "loading", value: loadingVariant.text, setViewMoreNextIndex: this.setVieMoreNextIndex, onClick: loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.onClick }));
# 15825|                   }
# 15826|               }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant