Abuse Melding

Je hebt een klacht over de onderstaande posting:

17-10-2016, 15:26 door Anoniem

I'm not happy about this. new_ functions in pEp engine are considered constructors. They have to deliver a pointer to the constructed object, or NULL on out of memory. Unfortunately, the constructor new_stringpair() is designed to take non-optional parameters (practically all other constructors are taking optional parameters only). This is, because a stringpair of less than two strings does not make sense semantically. And here we go: it is impossible to find a correct implementation, which keeps the original assumptions, and additionally delivers a parameter error if parameters are missing (are NULL). The “fix” we have now is changing the behaviour of the function. It's not any more delivering NULL on out of memory, but NULL on any error (which includes parameters missing). This is generating a bug in pgp_gpg.c:1289 for example. I think, we have to revert that for good reasons.

Beschrijf je klacht (Optioneel):

captcha