View Issue Details

IDProjectCategoryView StatusLast Update
0006194Talerexchangepublic2021-08-24 14:23
Reporterfefe Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytextReproducibilityN/A
Status closedResolutionfixed 
Product Version0.7.0 
Target Version0.7.1Fixed in Version0.7.1 
Summary0006194: serialize_denomination_key NULL case looks fishy
DescriptionIn exchange/src/lib/exchange_api_refresh_common.c:

214 * @return number of bytes written to @a buf at @a off, or if
215 * @a buf is NULL, number of bytes required

This is slightly ambiguous. Does the number of bytes required include off or not?

Turns out: it does not:

228 if (NULL == buf)
229 {
230 GNUNET_free (pbuf);
231 return pbuf_size + sizeof (uint32_t);
232 }

This is the behavior expected by the only caller.
Recommendation: make the comment clearer. Maybe add an "additional" or so.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2020-04-21 13:01

manager   ~0015726

Clarified behavior in comments in ee0d0dd3..32bce6da

Issue History

Date ModifiedUsernameFieldChange
2020-04-21 12:56fefeNew Issue
2020-04-21 12:56fefeStatusnew => assigned
2020-04-21 12:56fefeAssigned To => Christian Grothoff
2020-04-21 13:01Christian GrothoffStatusassigned => informing
2020-04-21 13:01Christian GrothoffResolutionopen => fixed
2020-04-21 13:01Christian GrothoffFixed in Version => 0.7.1
2020-04-21 13:01Christian GrothoffNote Added: 0015726
2020-04-21 13:01Christian GrothoffTarget Version => 0.7.1
2021-08-24 14:23Christian GrothoffStatusinforming => closed