..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 03-18-2010, 11:39 PM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / PCSX2 Discussion and Support / Bug reporting / getcwd() buffer is too small

1 user browsing this thread: (0 members, and 1 guest).

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
getcwd() buffer is too small
Author Message
eintr Offline
Newbie

Posts: 1
Joined: Nov 2009
Location:
Post: #1
getcwd() buffer is too small
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.
11-19-2009 05:09 AM
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Current time: 03-18-2010, 11:39 PM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2010 MyBB Group.
Theme created by IncadudeF and modified by bositman