Reply To: svn 1586 crashed when scan

#12165
rpedde
Participant

@yllu wrote:

I tried to set PATH_MAX to 2048.
I also tried to modify line 334 in mp3-scanner.c to set
char de[sizeof(struct dirent) + MAXNAMLEN + 1]; to char de[sizeof(struct dirent) + MAXNAMLEN + 1024];.
However, the tests both failed.
And I can not figure out what’s wrong with line 365 in mp3-scanner.c.

Looks to me like it should be:


err=readdir_r(current_dir,(struct dirent *)&de,&pde);

rather than


err=readdir_r(current_dir,(struct dirent *)de,&pde);

— Ron