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

Issue detecting loop #7

Open
amonaco opened this issue Jul 31, 2014 · 0 comments
Open

Issue detecting loop #7

amonaco opened this issue Jul 31, 2014 · 0 comments

Comments

@amonaco
Copy link

amonaco commented Jul 31, 2014

Hello Thiago,

Thanks for the great work and effort in this library. I have an issue detecting loops when the loop is inside an async library call:

async.parallel([function(cb) { cb (null, true); }], function(error, result) {

  var arr_a = [0, 1, 2, 3, 4];
  var arr_b = [];

  arr_b = arr_a;
  // arr_b = _.clone(arr_a);

  // infinite loop
  for (i = 0; i < arr_a.length; i++) {
    arr_b.push("foo");
  }
});

Any clues on why is the loop not being detected?

Since I'm building a sandbox for running 'untrusted' code I'm trying to find the best way to avoid a resource bomb like this.

Thanks!

@amonaco amonaco changed the title VM memory limit Issue detecting loop Jul 31, 2014
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