From c8f25953ad1dd38a8b2d92738f0f742ad7e0bce7 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 21 Mar 2021 21:21:15 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32322 --- coders/dcm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/coders/dcm.c b/coders/dcm.c index 29eed9618..7a68ed6e8 100644 --- a/coders/dcm.c +++ b/coders/dcm.c @@ -2984,12 +2984,12 @@ static MagickBooleanType ReadDCMPixels(Image *image,DCMInfo *info, } else { - SetPixelRed(q,(Quantum) (((ssize_t) pixel.red) | - (((ssize_t) GetPixelRed(q)) << 8))); - SetPixelGreen(q,(Quantum) (((ssize_t) pixel.green) | - (((ssize_t) GetPixelGreen(q)) << 8))); - SetPixelBlue(q,(Quantum) (((ssize_t) pixel.blue) | - (((ssize_t) GetPixelBlue(q)) << 8))); + SetPixelRed(q,(Quantum) (((size_t) pixel.red) | + (((size_t) GetPixelRed(q)) << 8))); + SetPixelGreen(q,(Quantum) (((size_t) pixel.green) | + (((size_t) GetPixelGreen(q)) << 8))); + SetPixelBlue(q,(Quantum) (((size_t) pixel.blue) | + (((size_t) GetPixelBlue(q)) << 8))); } q++; } -- 2.31.0 23589be3f0711755a3e90d8de5d7ff6a'>treecommitdiff
path: root/nix/libstore/builtins.cc
AgeCommit message (Expand)Author
2019-09-08daemon: Run 'guix perform-download' directly....* nix/scripts/download.in: Remove. * nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove 'scripts/download'. * config-daemon.ac: Don't output 'nix/scripts/download'. * nix/libstore/builtins.cc (builtinDownload): Invoke 'guix perform-download' directly. Ludovic Courtès
2019-02-04daemon: Add "/guix" to default 'nixLibexecDir'....This makes it easier to run the uninstalled daemon. * nix/local.mk (libstore_a_CPPFLAGS): Append "/guix" to NIX_LIBEXEC_DIR. * build-aux/pre-inst-env.in (NIX_LIBEXEC_DIR): Adjust comment. * nix/libstore/builtins.cc (builtinDownload): Remove SUBDIR and its use. * nix/libstore/local-store.cc (runAuthenticationProgram): Ditto. * nix/libstore/gc.cc (addAdditionalRoots): Remove "/guix" prefix. * nix/nix-daemon/guix-daemon.cc (main): Ditto. Ludovic Courtès
2018-09-27perform-download: Optionally report a "download-progress" trace....* guix/scripts/perform-download.scm (perform-download): Add #:print-build-trace? and pass it to 'url-fetch'. (guix-perform-download): Define 'print-build-trace?' and pass it to 'perform-download'. * guix/build/download.scm (ftp-fetch): Add #:print-build-trace? and honor it. (url-fetch): Likewise. * nix/libstore/builtins.cc (builtinDownload): Set _NIX_OPTIONS environment variable. Ludovic Courtès