receiving the following error in the program-
corrupted size vs. prev_size
Aborted
it runs fine with small texts such as cat.txt
but not with bigger ones such as lalaland.txt
could anyone kindly inform me when/why does this error occur?
tried valgrind
too but am unable to understand the problem.
link for code which contains the troublesome function - https://gist.github.com/ayushm2003/dcf761a81ddc955fd09f2385d3ccf428
realloc
?[(stackoverflow.com/questions/48177778/…). No one with be able to help you because there is no code to review, no valgrind report to review. run valgrind withvalgrind -v
to maximize the feedback. It should be giving you line numbers from dictionary.c, at least a place to start.