View Issue Details

IDProjectCategoryView StatusLast Update
0008054Talerauditorpublic2024-03-07 19:47
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
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.9.4Fixed in Version0.9.4 
Summary0008054: handle_exchanges_finished: integer truncation
DescriptionThis is in exchange/src/lib/auditor_api_exchanges.c:

   79 static void
   80 handle_exchanges_finished (void *cls,
   81 long response_code,
   82 const void *djson)
   83 {
   84 const json_t *json = djson;
   85 const json_t *ja;
   86 unsigned int ja_len;

This should be size_t instead of unsigned int.

  111 ja_len = json_array_size (ja);
  112 if (ja_len > MAX_EXCHANGES)
  113 {
  114 GNUNET_break (0);
  115 ler.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED;
  116 ler.hr.http_status = 0;
  117 break;
  118 }

json_array_size() returns size_t, so the assignment to ja_len here potentially truncates the value, leading to logic errors.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

child of 0008112 implementingoec Merchant security review 

Activities

Christian Grothoff

2024-01-10 13:43

manager   ~0020856

Nice one, but: this endpoint is actually being removed, as we're killing multi-tenant support in the exchange. So I'll fix it by killing the code ;-).

Christian Grothoff

2024-01-10 13:52

manager   ~0020857

Fixed in 68ced6e3..fcce372a

Issue History

Date ModifiedUsernameFieldChange
2024-01-10 13:40fefeNew Issue
2024-01-10 13:40fefeStatusnew => assigned
2024-01-10 13:40fefeAssigned To => Christian Grothoff
2024-01-10 13:43Christian GrothoffNote Added: 0020856
2024-01-10 13:52Christian GrothoffStatusassigned => informing
2024-01-10 13:52Christian GrothoffResolutionopen => fixed
2024-01-10 13:52Christian GrothoffFixed in Version => 0.9.4
2024-01-10 13:52Christian GrothoffNote Added: 0020857
2024-01-10 13:52Christian GrothoffProduct Version => git (master)
2024-01-10 13:52Christian GrothoffTarget Version => 0.9.4
2024-01-18 22:33Christian GrothoffRelationship addedchild of 0008112
2024-03-07 19:47Christian GrothoffStatusinforming => closed