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
could anyone kindly inform me when/why does this error occur?
valgrind too but am unable to understand the problem.
link for code which contains the troublesome function - https://gist.github.com/ayushm2003/dcf761a81ddc955fd09f2385d3ccf428