gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #49347] Invalid writes and reads in Table


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #49347] Invalid writes and reads in Table
Date: Fri, 21 Oct 2016 21:09:40 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Update of bug #49347 (project gnuastro):

                  Status:               Confirmed => Fixed                  
             Assigned to:                    None => makhlaghi              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

I had a closer look and found the source of the problem, it is now fixed and
has been pushed
<http://git.savannah.gnu.org/cgit/gnuastro.git/commit/?id=6836e7d022afd6e> to
the main repository. From the commit message:

The `data' element of Table's `outcolumn' structure (in `bin/table/main.h')
has a `void *' type to allow various types. However, to allocate space for the
output column we were using the `sizeof' operator on it! This would give a
size of 1 and would cause a crash some systems. 

In the previous commit (5c41564: New function to return the size of FITS
datatype), a new function was added to the Gnuastro FITS functions to return
the number of bytes in each datatype. With that function, the datatype's size
is now also stored in the `outcolumn' structure and the allocation is done
based on that.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49347>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]