Ticket #120 (new defect)

Opened 1 year ago

Last modified 1 week ago

[PATCH] g_string_vprintf isn't able to deal with a string with NULL pointer on Solaris

Reported by: jijun.yu@sun.com Assigned to: ehabkost
Priority: normal Component: SyncML-Plugin
Version: Severity: normal
Keywords: Cc:

Description

A string with null pointer is often passed to smlTrace function in which g_strdup_vprintf will deal with the string. On Solaris platform, g_strdup_vprintf isn't able to deal with a string with NULL pointer. On Linux platform, although it could be dealt with, I think it's not a good way.

In the patch, for the string argument passed to smlTrace function, its pointer will be checked at first if it is NULL or not. If it's null, the string "NULL" instead of the pointer is passed.

Attachments

libsyncml-05-printf-null.diff (53.9 kB) - added by jerryyu on 07/13/07 10:17:32.

Change History

07/13/07 10:17:32 changed by jerryyu

  • attachment libsyncml-05-printf-null.diff added.

08/12/08 14:40:27 changed by felixmoeller

  • summary changed from g_string_vprintf isn't able to deal with a string with NULL pointer on Solaris to [PATCH] g_string_vprintf isn't able to deal with a string with NULL pointer on Solaris.