View Issue Details

IDProjectCategoryView StatusLast Update
0009302GNUnetutil librarypublic2024-10-29 19:56
Reporterfefe Assigned Toschanzen Due Date
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.22.2Fixed in Version0.22.2 
Summary0009302: GNUNET_CRYPTO_hash_file: buffer overflow
Description168 struct GNUNET_CRYPTO_FileHashContext * 169 GNUNET_CRYPTO_hash_file (enum GNUNET_SCHEDULER_Priority priority,
170 const char *filename,
171 size_t blocksize,
172 GNUNET_CRYPTO_HashCompletedCallback callback,
173 void *callback_cls)
174 {
175 struct GNUNET_CRYPTO_FileHashContext *fhc;
176
177 GNUNET_assert (blocksize > 0);
178 fhc =
179 GNUNET_malloc (sizeof(struct GNUNET_CRYPTO_FileHashContext) + blocksize);

This needs an overflow check. blocksize comes in as function argument and the caller might have been tricked.
TagsNo tags attached.

Activities

schanzen

2024-10-29 12:00

administrator   ~0023612

Fix committed to master branch.

schanzen

2024-10-29 19:56

administrator   ~0023625

Released

Issue History

Date ModifiedUsernameFieldChange
2024-10-28 12:54fefeNew Issue
2024-10-29 12:00schanzen
2024-10-29 12:00schanzenNote Added: 0023612
2024-10-29 12:00schanzenAssigned To => schanzen
2024-10-29 12:00schanzenStatusnew => resolved
2024-10-29 12:00schanzenResolutionopen => fixed
2024-10-29 12:00schanzenFixed in Version => 0.22.2
2024-10-29 12:00schanzenTarget Version => 0.22.2
2024-10-29 19:56schanzenNote Added: 0023625
2024-10-29 19:56schanzenStatusresolved => closed