[redland-dev] [Rasqal RDF Query Library 0000466]: zero size calloc does not return object (src/rasqal_row.c)
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Thu Aug 25 21:52:05 CEST 2011
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=466
======================================================================
Reported By: pogma
Assigned To:
======================================================================
Project: Rasqal RDF Query Library
Issue ID: 466
Category: portability
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Query Language:
======================================================================
Date Submitted: 2011-08-25 19:52
Last Modified: 2011-08-25 19:52
======================================================================
Summary: zero size calloc does not return object
(src/rasqal_row.c)
Description:
src/rasqal_row.c does:
row->values = (rasqal_literal**)RASQAL_CALLOC(array, row->size,
sizeof(rasqal_literal*));
With row->size sometimes equal to 0. On AIX this returns NULL, and then the
function returns NULL which causes the datetime test to fail.
Steps to Reproduce:
Run the testsuite on AIX 5.3
Additional Information:
Not sure that this patch is correct, but the test passes.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-08-25 19:52 pogma New Issue
2011-08-25 19:52 pogma File Added: rasqal_row.patch
======================================================================
More information about the redland-dev
mailing list