#1011997 bvi: search&replace crashes

Package:
bvi
Source:
bvi
Description:
binary file editor
Submitter:
Jakub Wilk
Date:
2022-07-02 15:39:05 UTC
Severity:
normal
#1011997#3
Date:
2022-05-28 15:09:38 UTC
From:
To:
bvi crashes every time I try to search&replace:

   $ bvi -c 's/x/y/' /usr/bin/bvi
   00000010  03 00 03 00 01 00 00 00 30 35 00 00 34 00 00 00 ........05..4...
   00000020  B8 35 01 00 00 00 00 00 34 00 20 00 09 00 28 00 .5......4. ...(.
   00000030  1C 00 1B 00 06 00 00 00 34 00 00 00 34 00 00 00 ........4...4...
   00000040  34 00 00 00 20 01 00 00 20 01 00 00 04 00 00 00 4... ... .......
   00000050  04 00 00 00 03 00 00 00 54 01 00 00 54 01 00 00 ........T...T...
   00000060  54 01 00 00 13 00 00 00 13 00 00 00 04 00 00 00 T...............
   00000070  01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
   00000080  00 00 00 00 F0 25 01 00 F0 25 01 00 05 00 00 00 .....%...%......
   00000090  00 10 00 00 01 00 00 00 BC 2E 01 00 BC 3E 01 00 .............>..
   000000A0  BC 3E 01 00 CC 05 00 00 AC 64 00 00 06 00 00 00 .>.......d......
   000000B0  00 10 00 00 02 00 00 00 C4 2E 01 00 C4 3E 01 00 .............>..
   000000C0  C4 3E 01 00 00 01 00 00 00 01 00 00 06 00 00 00 .>..............
   000000D0  04 00 00 00 04 00 00 00 68 01 00 00 68 01 00 00 ........h...h...
   000000E0  68 01 00 00 44 00 00 00 44 00 00 00 04 00 00 00 h...D...D.......
   000000F0  04 00 00 00 50 E5 74 64 BC EA 00 00 BC EA 00 00 ....P.td........
   00000100  BC EA 00 00 C4 02 00 00 C4 02 00 00 04 00 00 00 ................
   00000110  04 00 00 00 51 E5 74 64 00 00 00 00 00 00 00 00 ....Q.td........
   00000120  00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 00 ................
   00000130  10 00 00 00 52 E5 74 64 BC 2E 01 00 BC 3E 01 00 ....R.td.....>..
   00000140  BC 3E 01 00 44 01 00 00 44 01 00 00 04 00 00 00 .>..D...D.......
   00000150  01 00 00 00 2F 6C 69 62 2F 6C 64 2D 6C 69 6E 75 ..../lib/ld-linu
   00000160  78 2E 73 6F 2E 32 00 00 04 00 00 00 10 00 00 00 x.so.2..........
   Segmentation fault (core dumped) bytes

Backtrace:

#0  __GI___libc_realloc (oldmem=0x6f732e78, bytes=1) at malloc.c:3349
#1  0x565f108e in alloc_buf (n=6223891946776035329, buffer=0x578a5970) at io.c:451
#2  0x565ef515 in do_substitution (delim=<optimized out>, line=0xffa84b5e "x/y/", startpos=<optimized out>, endpos=0x578b9227 "") at re.c:352
#3  0x565ec5aa in docmdline (cmdline=0x565fb4e0 <cmdstr> "s/x/y/") at comm.c:224
#4  0x565e8ce0 in main (argc=<optimized out>, argv=<optimized out>) at bvi.c:302

#1011997#8
Date:
2022-05-28 15:38:57 UTC
From:
To:
Am 28.05.2022 um 17:09 schrieb Jakub Wilk:
Thank you for reporting this bug!
Please have a look if the upcoming version has already fixed the bug:
https://puon.at/_tmp/bvi-1.4.2rc.src.tar.gz


Gerhard Bürgmann

#1011997#11
Date:
2022-05-30 07:43:54 UTC
From:
To:
* Gerhard Bürgmann <gerhard@puon.at>, 2022-05-28, 17:38:

The new version doesn't crash. Thanks.

#1011997#16
Date:
2022-07-02 15:35:29 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
bvi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011997@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated bvi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 02 Jul 2022 16:41:00 +0200
Source: bvi
Architecture: source
Version: 1.4.1-1
Distribution: unstable
Urgency: medium
Maintainer: Étienne Mollier <emollier@debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1011564 1011997 1012109
Changes:
 bvi (1.4.1-1) unstable; urgency=medium
 .
   * New upstream version  (Closes: #1011997)
   * d/control: adoption of the package by myself.
     Thanks to Sam Hocevar for having previously maintained bvi!
     (Closes: #1011564)
   * d/control: package maintenance restarted on salsa.
   * d/control: set homepage.
     Thanks to Jakub Wilk for the pointer. (Closes: #1012109)
   * Add d/watch: automate scan for new versions on SourceForge.
   * Standards-Version: 4.6.1 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Remove trailing white spaces in various files (routine-update)
   * Add salsa-ci file (routine-update)
   * Rules-Requires-Root: no (routine-update)
   * Fix day-of-week for changelog entry 1.1.0-1.
   * d/copyright: move to copyright-1.0 format, taking that opportunity to
     refresh copyright information.
   * Add the following patches to fix multiple issues caught by lintian:
       - bvi-manual.patch
       - bmore-manual.patch
       - typos.patch
   * d/rules: enable hardening.
Checksums-Sha1:
 c46b9ad9f7115217a48e12cfaa9ec40d2d9bd560 1922 bvi_1.4.1-1.dsc
 94a118957951a400b572a683cea9f70ee852e08a 115016 bvi_1.4.1.orig.tar.xz
 c00b401ab864b67a7b3a4649e7a5d187f0455842 5404 bvi_1.4.1-1.debian.tar.xz
Checksums-Sha256:
 961d7ba21392d065c7a09fe6b2b35f088304d14999be378be513be46f2974a4c 1922 bvi_1.4.1-1.dsc
 69c36db2de8d65c605ca32edefd49a77a753c2a0346a87cfdaad56b517699921 115016 bvi_1.4.1.orig.tar.xz
 cff00c9e4bb63ff9846e7f9c7a3be57a721ca20118aa49fd857507e70b8a4a85 5404 bvi_1.4.1-1.debian.tar.xz
Files:
 3b6dd50329d38d4cc66b41f1faf1e12c 1922 editors optional bvi_1.4.1-1.dsc
 09a2a4818a827176d98528b21658b635 115016 editors optional bvi_1.4.1.orig.tar.xz
 835ff905db4466916873a1193179250f 5404 editors optional bvi_1.4.1-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmLAW6sUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdqwLw//ccNucvBt3Zrsdjg3CFqjwpVnY0Ww
gmTYU0XCt6OQ7bEGWcz1+zQLc7FtgrSYm3PLqLENBS+tBpz1f3N8WMHoJDzBbqYc
FjRF+2uO9L+DhJUWWKgOoCv8AzUTPEUnjgNUNvkZTWeaqz2BMWhAFc9sHlFFMd9s
IQOsAeCs/eJwPUarhGTus+dB1YjmxKOrQY6cmkxGD/OCkh+YPQOXyO6OOBdfemvi
pK35bsYQq/565QL0yT2i/AE0572EGw9+6WzYXNZhXKmReSKKtInuh4TnnomsuSGv
HislRhCF/EgVEVQcm+v3WnMtlUezRdDzjOuh3nZB3Ec4CmpXKTdDN9enX2Y/GYEL
KgHBrpoDppES1+kLm7Z2AApXxeyWnukhbiHFjM59sVb2zfoTw2L+5XI+HBqP26jF
Moc3nPFriwl3DDInjlNELtHqlkrS2NGO1XV8Qc5XDI6XpB8R49mtvgx+vmAwzR4b
ZrIRr4V0nhK5t1DlFq8PIeFlaGmcH61J16xvcWgOb0W0SlDOZ4c8d3CXrftI1dXH
DA1gxz5mBYh+OtVLUp8F3+qpBGY7ldvoWi0zIesHEipwx+52pUpC8qUvvZpp30SD
LYQ6RoBopWLU+MsX16CzVpvDVl7WIdTufnVN3/lDsN6H49b29vG9syI08pfb8YDN
TSRynWTpagtmFFQ=
=5WAL
-----END PGP SIGNATURE-----