Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-152110

unexpand, expand, segfault with random generated file

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.3
    • rhel-10.1
    • coreutils
    • None
    • Yes
    • Moderate
    • rhel-base-utils-core
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • Release Note Not Required
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      There is a segfault when trying expand and unexpand with randomly generated file.

      Try more files, there are always segfault.
      [root@ip-172-31-17-206 ~]# dd if=/dev/urandom of="file123.bin" bs=1k count=1 2>/dev/null
      [root@ip-172-31-17-206 ~]# /usr/bin/unexpand file123.bin

      What is the impact of this issue to you?

      segfault

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      [root@ip-172-31-17-206 ~]# dd if=/dev/urandom of="file123.bin" bs=1k count=1 2>/dev/null
      [root@vm-10-0-186-182 ~]# /usr/bin/unexpand file123.bin
      unexpand: ../lib/mbfile.h:101: mbfile_multi_getc: Assertion `mbsinit (&mbf->state)' failed.
      Aborted (core dumped)
      [root@vm-10-0-186-182 ~]# expand file123.bin
      expand: ../lib/mbfile.h:101: mbfile_multi_getc: Assertion `mbsinit (&mbf->state)' failed.
      Aborted (core dumped)

      Expected results

      no segfault

      Actual results

              rh-ee-lzaoral Lukáš Zaoral
              psklenar Petr Sklenar
              Lukáš Zaoral Lukáš Zaoral
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: