[Bug 1807797] [NEW] Split doesn't check for filetype

Maliat Manzur 1807797 at bugs.launchpad.net
Tue Dec 11 02:33:09 UTC 2018


Public bug reported:

Hello! I noticed that Split doesn't check for filetypes before it starts
splitting the file. As a result, it's possible to eat up CPU and Disk
memory by passing in a character device as input. I wanted to make Split
more robust by adding a patch to check for file type.

This patch do break some of the tests for Split. The tests that are
checking Split's ability to "elide empty files" by using /dev/null as
input fail with this patch, since /dev/null is a character device. I
would love to modify those tests to use a regular empty file, upon the
approval of this patch.

Thanks!

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: filetype patch split

** Patch added: "Patch checks for filetype."
   https://bugs.launchpad.net/bugs/1807797/+attachment/5220988/+files/split_filetype.patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1807797

Title:
  Split doesn't check for filetype

Status in coreutils package in Ubuntu:
  New

Bug description:
  Hello! I noticed that Split doesn't check for filetypes before it
  starts splitting the file. As a result, it's possible to eat up CPU
  and Disk memory by passing in a character device as input. I wanted to
  make Split  more robust by adding a patch to check for file type.

  This patch do break some of the tests for Split. The tests that are
  checking Split's ability to "elide empty files" by using /dev/null as
  input fail with this patch, since /dev/null is a character device. I
  would love to modify those tests to use a regular empty file, upon the
  approval of this patch.

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1807797/+subscriptions



More information about the foundations-bugs mailing list