Red Hat Bugzilla – Bug 184399
Treo650 cannot sync on yesterday's rawhide
Last modified: 2007-11-30 17:11:26 EST
Description of problem:
Trying to sync a Treo650 fails on yesterday (march 9)'s rawhide install.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Connect the Palm via a sync cable to USB
2. Press the button
3. Run "pilot-xfer -s /data/pilot -p /dev/pilot" at the command line
Get output which I will attach, and it will abort
Should just work.
Created attachment 125809 [details]
output from trying to run pilot-xfer on an aspire running yesterday's rawhide install
Also happens on a fujitsu lifebook. I suspect this to not be machine specific.
The problem is libpisock.c/serial.c, near line 365.
With the "fortify" gcc/glibc extension, __realpath_chk is invoked (see glibc
debug/realpath_chk.c), with the compile-time known size 50 for the receipient
array. Since that 50 is smaller than PATH_MAX (or pathconf(_PC_PATH_MAX)),
glibc detects a likely buffer overflow and kills the program.
The fix would be to have a much larger buffer. Some files in /usr/include
define PATH_MAX as large as 4096 bytes. That ought to do it here.
*** This bug has been marked as a duplicate of 186779 ***