Address of local variable on stack

I wrote a little C code, opened it in GDB, put a breakpoint on line exploit = (long long *)&exploit+2; and run the program. #include<stdio.h> char Shellcode[] = "\x48\xc7\xc0\x01\x00\x00\x00" "\x48\xc7\xc3\x1a\x00\x00\x...
more »

2017-08-08 12:08 (1) Answers

Dynamic Tables, using jQuery and ajax

I apologize for giving a specific question, but I need your help. Can someone please point me to a link where I can learn how to create dynamic lists, just like the one used to render the list of questions over here at STACKOVERFLOW. Thanks! ...
more »

2017-06-14 13:06 (0) Answers

Avoiding stack overflow (Maze generator in C)

I'm currently writing a maze generator in C, using the depth-first search algorithm. It's working really well, and I'm happy with the result, but when I push the dimensions of the maze a bit too far (more than 2000x2000), it gives me a stack overflow...
more »

2017-05-10 16:05 (1) Answers

StackExchange API returning 400 with Node.js

One of my working code with node.js implementation of api.stackexchange.com has started returning 400 response code. Can someone suggest what may be wrong ? Adding code sample and response object dump. FYI, the GET call works in Chrome/Postman et...
more »

2017-05-10 02:05 (0) Answers

Java Generics - Stackoverflow

I am getting a StackOverflowError from using the following generics: Points: package me.expdev.gkitpvp; /* * Project created by ExpDev */ import me.expdev.gkitpvp.persist.json.JSONPoints; public abstract class Points { private static Poin...
more »

2017-05-07 15:05 (1) Answers

Recursion ocaml stack overflow

I'm trying to draw fractal: for every circle displeyed I want to draw circle half it's size to the left and right of that circle. Here is my code: let rec drawCircle x y r = let halfSize = r/2 in draw_circle x y r; drawCircle (x...
more »

2017-05-01 19:05 (1) Answers

stack overflow exception in recursion java

My problem is when i change the first parameter into over 300 in line 133, i get a java.lang.StackOverflowError in line 37.This line is a recursion. How can i solve this? public class PathFindingOnSquaredGrid { // given an N-by-N matrix of open cel...
more »

2017-04-29 12:04 (0) Answers

Would linux tell me if there was a stack overflow?

Bear in mind I'm relatively new to C and linux. For one of my classes I have a project in which we are supposed to find which cities are located in a certain geographical box, we have to use binary search trees though the implementation is up to us....
more »

2017-04-14 12:04 (2) Answers

javascript recursive stack overflow

Is there anybody would explain why the result is different below? // test one function computeMaxCallStackSize() { try { return computeMaxCallStackSize() + 1; } catch (e) { return 1; } } console.log(computeMaxCallStackSi...
more »

2017-04-11 10:04 (1) Answers

Stack Overflow from Missed Function Call

I'm sorry if this is posted elsewhere (I can't find anything, as my problem is rather specific), but I understand (or least in theory) what the error is; I am having trouble on how to fix it. The code is supposed to show how merge sort works; The cod...
more »

2017-04-07 05:04 (1) Answers

ES6 Tail Recursion Optimisation Stack Overflow

Having read Dr Rauschmayer's description of recursive tail call optimisation in es6, I've since been trying to recreate the 'zero-stack' execution of the recursive factorial function he details. Using the Chrome debugger to step between stack frames,...
more »

2017-03-14 15:03 (1) Answers

Large VLA overflow

Based on a comment of someone in another thread: VLAs introduce more problems than they solve, because you never know if the declaration is going to crash for x being too large for the stack. This code will overflow because sizeof(a) is too...
more »

2017-02-08 21:02 (1) Answers

Why doesn't this cause stackoverflow?

In 8.hs I define digitProduct [] = 1 digitProduct (c:rest) = (read [c] :: Int) * digitProduct rest Then inside ghci, I run digitProduct $ take 10000 $ repeat '9' And it produces a result: -3633723290617080191 I would've imagined that a recur...
more »

2016-12-12 06:12 (1) Answers