From: shibata.hiroshi@... Date: 2016-06-01T13:42:04+00:00 Subject: [ruby-core:75823] [Ruby trunk Bug#12195][Feedback] [BUG] probable buffer overflow: 4010 for 2005 (CFUNC :read) Issue #12195 has been updated by Hiroshi SHIBATA. Status changed from Open to Feedback Please try with Ruby 2.3.1 ---------------------------------------- Bug #12195: [BUG] probable buffer overflow: 4010 for 2005 (CFUNC :read) https://bugs.ruby-lang.org/issues/12195#change-59004 * Author: James Watson * Status: Feedback * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- This causes ruby to shutdown: [[https://github.com/minad/mimemagic/blob/master/lib/mimemagic.rb#L112]] recursive read and seek on a file for a table of regexps. It's a gem for mime type detection. The code is running in a rails Sidekiq worker. It's a delayed job to detect uploaded file type. The file is stored in a distributed fs CF. ---Files-------------------------------- crash.log (211 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: