Skip to content

Commit

Permalink
Fix Improper Input Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
EffectRenan committed Apr 8, 2021
1 parent 8537f4c commit 572d76e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/osinfo.js
Expand Up @@ -485,6 +485,10 @@ function versions(apps, callback) {
apps = '*';
} else {
apps = apps || '*';
if (typeof apps !== 'string') {
if (callback) { callback({}); }
return resolve({});
}
}
const appsObj = checkVersionParam(apps);
let totalFunctions = appsObj.counter;
Expand Down

0 comments on commit 572d76e

Please sign in to comment.