Hangar.La tienda de software del Amiga

BrowserII-Patch 3.10

Patch BrowserII bug in ParsePattern()

Short:        Patch BrowserII bug in ParsePattern()
Author:       Alex Carmona
Uploader:     Alex Carmona <AmigaOne theworld net>
Type:         util/dir
Version:      3.10
Requires:     util/dir/BrowserII.lha
Architecture: m68k-amigaos

This archive contains a patch for BrowserII 3.09 which changes the size
of the ParsePattern() DOS function buffer from 32 to 64.

To avoid confusion the patch also bumps the revision in the version
string from 3.09 to 3.10 and updates the date to May 14th 2008.

Under OS4 BrowserII 3.09 fails with filenames longer than 15 chars, when
using the Duplicate, Copy As, Move As, and Rename functions.

This is a bug in BrowserII. My guess is the authors misread the AmigaOS
autodocs and didn't realize that ParsePattern() must request a buffer
size *twice* the string length (+1 for the null termination).

Under OS3.x dos.library didn't check the buffer size and allowed the
function to return normally, potentially trashing some memory and
causing random crashes later, while in OS4 the library checks the size
and returns failure if the buffer is too small.

I don't have the source code for BrowserII and was unable to locate
Silvain Rougier, the surviving co-author, but I use that program for
everything related to files, and it's so convenient that I want to keep
using it as long as possible, so the only way to fix that issue was to
modify the compiled binary with an HEX editor (FileX).

BrowserII only allows filenames up to 30 chars in its requesters, so
this patch won't help with longer filenames but at least it should
prevent memory corruption in OS3.x and allow more than 15 chars in OS4.

Gratis

Descargar 19 KB

Desde el Amiga: abre Hangar y busca BrowserII-Patch.

AutorAlex Carmona
Categoríautil/dir
Tamaño19 KB
Fecha2024-03-20
Param68k-amigaos
Necesitautil/dir/BrowserII.lha
OrigenAminet