View Issue Details

IDProjectCategoryView StatusLast Update
0006194Talerexchangepublic2021-08-24 16:23
Reporterfefe Assigned ToChristian Grothoff  
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.

Activities

Christian Grothoff

2020-04-21 15:01

manager   ~0015726

Clarified behavior in comments in ee0d0dd3..32bce6da

Issue History

Date Modified Username Field Change
2020-04-21 14:56 fefe New Issue
2020-04-21 14:56 fefe Status new => assigned
2020-04-21 14:56 fefe Assigned To => Christian Grothoff
2020-04-21 15:01 Christian Grothoff Status assigned => resolved
2020-04-21 15:01 Christian Grothoff Resolution open => fixed
2020-04-21 15:01 Christian Grothoff Fixed in Version => 0.7.1
2020-04-21 15:01 Christian Grothoff Note Added: 0015726
2020-04-21 15:01 Christian Grothoff Target Version => 0.7.1
2021-08-24 16:23 Christian Grothoff Status resolved => closed