symlink crashes octave if filename is longer than 23 chars

John W. Eaton jwe at bevo.che.wisc.edu
Wed Aug 13 10:23:48 CDT 2008


On 13-Aug-2008, hwz at hwz.bv.TU-Berlin.DE wrote:

| --------
| Bug report for Octave 3.0.1 configured for x86_64-unknown-linux-gnu
| 
| Description:
| -----------
| 
| The function symlink crashes octave if the first argument (OLD)
| is longer than 23 chars.
| 
| 
| Repeat-By:
| ---------
| 
| Example:
| 
| a="123456789012345678901234";
| b="xxx";
| system(["touch ", a]);
| symlink(a, b)
| 
| If 'a' is reduced by one char, the function works properly.
| 
| The problem occurs with octave 2.9.9 as well on two different linux systems:
| 
| Linux fw578 2.6.13-15.7-smp
| SUSE LINUX 10.0 (X86-64)
| VERSION = 10.0
| 
| Linux fs045 2.6.16.54-0.2.8-smp
| SUSE Linux Enterprise Server 10 (x86_64)
| VERSION = 10
| PATCHLEVEL = 1
| 
| 
| Fix:
| ---
| 
| I've looked into liboctave/file-ops.cc but have no idea...
| Maybe a problem related to libstdc++?

I'm unable to reproduce this problem.  If you'd like to debug it,
I think you should start by running Octave under gdb and finding out
where the crash occurs.

jwe


More information about the Bug-octave mailing list