Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #215] ido2db_query_insert_or_update_save_custom_variables_customvariablestatus_add segfault #94

Closed
icinga-migration opened this issue Dec 11, 2009 · 1 comment

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/215

Created by mfriedrich on 2009-12-11 15:35:02 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-12-11 15:45:05 +00:00)
Target Version: 1.0 Stable
Last Update: 2009-12-11 15:45:05 +00:00 (in Redmine)


http://www.nagios-portal.org/wbb/index.php?page=Thread&threadID=16948

Ein paar Stunden Debugging später können wir nun zumindest das Problem etwas einkreisen.

Das Problem ist der Inhalt von data[2] in der Methode ido2db_query_insert_or_update_save_custom_variables_customvariablestatus_add (dbqueries.c) - der Zugriff darauf via asprintf() führt zum segfault.


> handed ts[0] instead of ts only which is an char* not an array of char* like usually within the code. happened during rewriting the queries for more rdbms.

Changesets

2009-12-11 15:36:32 +00:00 by mfriedrich 1d735cb

fix save custom variables segfault
ts in this case is a char* not an array of char*

fixes #215
@icinga-migration
Copy link
Author

Updated by mfriedrich on 2009-12-11 15:45:05 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset commit:"1d735cba9f99010ec22d4f56801e095f87ff8783".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant