From 38386bd482c0a8102a79958cb3eddcb97a167ca3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 9 Mar 2018 17:39:40 +1100 Subject: [PATCH] CVE-2017-8842 Fix divide-by-zero in bufRead::get --- libzpaq/libzpaq.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libzpaq/libzpaq.h b/libzpaq/libzpaq.h index 93387da..cbe211d 100644 --- a/libzpaq/libzpaq.h +++ b/libzpaq/libzpaq.h @@ -465,7 +465,8 @@ struct bufRead: public libzpaq::Reader { int get() { if (progress && !(*s_len % 128)) { - int pct = (total_len - *s_len) * 100 / total_len; + int pct = (total_len > 0) ? + (total_len - *s_len) * 100 / total_len : 100; if (pct / 10 != *last_pct / 10) { int i; sg' value='1'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/rails.scm
AgeCommit message (Collapse)Author
2021-02-23gnu: ruby-rails: Update to 6.1.3.Efraim Flashner
* gnu/packages/rails.scm (ruby-activemodel, ruby-activerecord, ruby-actionview, ruby-actionpack, ruby-actioncable, ruby-activejob, ruby-activestorage, ruby-actionmailer, ruby-railties, ruby-rails): Update to 6.1.3. (ruby-actiontext, ruby-actionmailbox): New variables. (ruby-actioncable)[propagated-inputs]: Add ruby-activesupport. (ruby-activestorage)[propagated-inputs]: Add ruby-activejob, ruby-activesupport, ruby-mimemagic. (ruby-actionmailer)[propagated-inputs]: Add ruby-activesupport. (ruby-railties)[propagated-inputs]: Add ruby-rake. (ruby-rails)[propagated-inputs]: Add ruby-actionmailbox, ruby-actiontext. * gnu/packages/ruby.scm (ruby-activesupport): Update to 6.1.3. [propagated-inputs]: Add ruby-zeitwerk. [home-page]: Use https.
2021-02-23gnu: ruby-web-console: Update to 4.1.0.Efraim Flashner
* gnu/packages/rails.scm (ruby-web-console): Update to 4.1.0.
2021-02-23gnu: ruby-rails-html-sanitizer: Update to 1.3.0.Efraim Flashner
* gnu/packages/rails.scm (ruby-rails-html-sanitizer): Update to 1.3.0.
2021-02-23gnu: ruby-rails-dom-testing: Update to 2.0.3.Efraim Flashner
* gnu/packages/rails.scm (ruby-rails-dom-testing): Update to 2.0.3.