[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [bug #48657] Incorrect error mesasge in convolve.c
From: |
Vladimir Markelov |
Subject: |
[gnuastro-devel] [bug #48657] Incorrect error mesasge in convolve.c |
Date: |
Fri, 29 Jul 2016 05:39:53 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 |
URL:
<http://savannah.gnu.org/bugs/?48657>
Summary: Incorrect error mesasge in convolve.c
Project: GNU Astronomy Utilities
Submitted by: vvm
Submitted on: Thu 28 Jul 2016 10:39:51 PM PDT
Category: Convolve
Severity: 2 - Minor
Item Group: Source code
Status: None
Privacy: Public
Assigned to: vvm
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Two similar places in convolve.c:
205 pimg=p->pimg=malloc(2*ps0*ps1*sizeof *pimg);
206 if(pimg==NULL)
207 error(EXIT_FAILURE, errno, "%lu bytes for pimg", ps0*ps1*sizeof
*pimg);
222 pker=p->pker=malloc(2*ps0*ps1*sizeof *pker);
223 if(pker==NULL)
224 error(EXIT_FAILURE, errno, "%lu bytes for pker", ps0*ps1*sizeof *pker);
In both places allocated memory size is twice as bigger as in the error
message
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48657>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [gnuastro-devel] [bug #48657] Incorrect error mesasge in convolve.c,
Vladimir Markelov <=