pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Add openblas: ?Optimized BLAS library based on GotoBLAS2



On Thu, Sep 21, 2017 at 10:22:30PM +0000, Jason Bacon wrote:
> diff --git a/openblas/patches/patch-interface__ztrmv.c b/openblas/patches/patch-interface__ztrmv.c
> new file mode 100644
> index 0000000000..06e02caa9e
> --- /dev/null
> +++ b/openblas/patches/patch-interface__ztrmv.c
> @@ -0,0 +1,14 @@
> +$NetBSD$
> +
> +# Avoid buffer overflow
> +--- interface/ztrmv.c.orig	2016-09-01 03:58:42 UTC
> ++++ interface/ztrmv.c
> +@@ -242,7 +242,7 @@ void CNAME(enum CBLAS_ORDER order, enum 
> +   else
> + #endif
> +   {
> +-    buffer_size = ((n - 1) / DTB_ENTRIES) * 2 * DTB_ENTRIES + 32 / sizeof(FLOAT);
> ++    buffer_size = (((n - 1) / DTB_ENTRIES) * 2 * DTB_ENTRIES + 32 / sizeof(FLOAT)) + 8;
> +     // It seems to be required for some K8 or Barcelona CPU
> +     buffer_size += 8;
> +     if(incx != 1)

Please report this upstream if you haven't yet


Home | Main Index | Thread Index | Old Index