Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resolved getcwd() buffer is too small
#1
There is no response while I click "Configure" button of LINUZ iso CDVD plugin.
Console said "cfgCDVDiso file not found!"

I straced the program, and found this:
=================================
...
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd(0xad42a44f, 4) = -1 ERANGE (Numerical result out of range)
chdir("plugins") = -1 ENOENT (No such file or directory)
stat64("./cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("./plugins/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("./cfg/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("/home/john/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
write(1, "cfgCDVDiso file not found!\n"..., 27) = 27
chdir("U\211\345S\203\354$\350|\351\377\377\201\303\231K") = -1 ENOENT (No such file or directory)
...
=================================

I noticed the buffer size of getcwd() is 4. I guess you maybe sizeofed a pointer var rarher than an array which is meaningless. And the latter chdir() is meaningless, too. I GUESS it sould be a "..".

I didn't read your source code, just my guess.

Sponsored links

#2
probably some old bug on the code ? works fine on the latest stable version.

Thank you for your report.
This bug report has now been marked as Resolved since it has been fixed on our code base.

This thread will now be closed and moved to the resolved bug reports subforum.
We're supposed to be working as a team, if we aren't helping and suggesting things to each other, we aren't working as a team.
- Refraction

[Image: attachment.php?aid=54612]




Users browsing this thread: 1 Guest(s)