[Bug 39988] New: winepath -w wrong output with path longer 260

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jan 14 17:18:20 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=39988

            Bug ID: 39988
           Summary: winepath -w wrong output with path longer 260
           Product: Wine
           Version: 1.9.0
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: s3141p at gmail.com
      Distribution: ---

When the input $pathname is longer than 260 characters wine -w $pathname
1. truncates the converted output path at 260 characters
2. appends some garbage characters to it
3. reports no error and exits with status 0

I think fixing #3 as a minimum is important; at least exit 1, possibly print an
error message.

Fixing #2? Why is it printing garbage characters? Buffer overrun?

And please consider changing #1 by extending support to paths > 260 characters.
After all, if I convert the same path by hand and feed it to a Windows
application it has no problems dealing with it. So the 260-character limit of
winepath -w seems rather artificial to me.

I create long linux paths with
mkdir -p /tmp/aaa/bbb/ccc/ddd/eee/
touch /tmp/aaa/bbb/ccc/ddd/eee/$(dd if=/dev/zero count=1 bs=260 | tr '\000' a)
# which creates /tmp/aaa/bbb/ccc/ddd/eee/aaaaaaaa...

Thanks.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list