Opened 23 months ago

#379 new defect

False "File name too long"

Reported by: dmik Owned by:
Priority: normal Milestone: new
Component: libc Version: 0.6.6
Severity: normal Keywords:
Cc:

Description

Sometimes you get a false "File name too long" error (errno = 63) from various kLIBC apps. Here is a test case that demonstrates an echo failure:

BASE=D:/Users/dmik/rpmbuild/BUILDtest
DIR=mozilla-os2-88370f93fe8ca31fb09db4b7d4d3f0fa6d38ecbc
FILE=dom/canvas/test/webgl-conformance/_wrappers/test_conformance__context__context-attributes-alpha-depth-stencil-antialias.html

mkdir -p "$BASE"
cd "$BASE"
mkdir -p "$DIR"
cd "$DIR"

mkdir -p "${FILE%/*}"

# this fails with "File name too long" 
echo.exe test > "../$DIR/$FILE"

# this works
#echo.exe test > "$BASE/$DIR/$FILE"

It looks like some internal buffer gets gets overflown when resolving a relative path.

Change History (0)

Note: See TracTickets for help on using tickets.