The following issue has been SUBMITTED. ====================================================================== http://bugs.librdf.org/mantis/view.php?id=465 ====================================================================== Reported By: pogma Assigned To: ====================================================================== Project: Raptor RDF Syntax Library Issue ID: 465 Category: portability Reproducibility: always Severity: minor Priority: normal Status: new Syntax Name: ====================================================================== Date Submitted: 2011-08-25 19:39 Last Modified: 2011-08-25 19:39 ====================================================================== Summary: c99 snprintf usage Description: Raptor checks carefully for a c99 snprintf, but in src/raptor_locator.c assumes that one is available by doing: bufsize += snprintf(NULL, 0, " column %d", locator->column);
snprintf(NULL,0,...) causes a segfault on OSF/1, and returns incorrect results on HP-UX, AIX 5.1 (both return 0) and Solais 9 (returns -1). Additional Information: Attached patch works around the issue ":<integer> column:<integer>" is never going to be larger than 4096 bytes (or even 1024 bytes). ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-08-25 19:39 pogma New Issue 2011-08-25 19:39 pogma File Added: raptor_locator.patch ====================================================================== _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
