Paranoid-Dev / ParanoidFFD

Undetectable fanfiction.net Downloader with Parallel Downloading
Apache License 2.0
10 stars 1 forks source link

Downloading very long fics result in segfault #12

Open Paranoid-Dev opened 3 years ago

Paranoid-Dev commented 3 years ago

Because of max char array size in C, downloading very long fics causes segmentation fault. Should change the code to not store the entire chapter/story in 1 char array.

Paranoid-Dev commented 3 years ago

or malloc static char it

Paranoid-Dev commented 3 years ago

Partial unsatisfying fix with static char buf[10000000]; Will change it to malloc in next update