Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Mar 2016 04:20:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 204643] [msdosfs] [panic] Crash while accessing files with large, non-english names
Message-ID:  <bug-204643-3630-IhST1kGUuU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204643-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204643-3630@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204643

--- Comment #3 from Kristof Provost <kp@freebsd.org> ---
Created attachment 168071
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=168071&action=edit
msdosfs: Prevent buffer overflow when expanding win95 names

My initial analysis seems to have missed a different overflow, in win2unixfn().
It looks like dos2unixfn() is probably safe, because it's unlikely that an
expansion of 8 or 12 bytes will take more than 255 bytes.

Can you test the attached patch? It should fix the panic you're seeing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204643-3630-IhST1kGUuU>