diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2025-11-10 14:41:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 14:41:21 -0500 |
| commit | cf50be9ef96fd8011fbd45321b4c454470112cf4 (patch) | |
| tree | d0586dd5cfc703586752dfc318a068a31539850a /src/cli/stasis_indexer/include/helpers.h | |
| parent | d90493618ce34a732c5411d1670be57d4dd9db4e (diff) | |
| parent | b999413700231b5d922c91addef7c080fd289b30 (diff) | |
| download | stasis-cf50be9ef96fd8011fbd45321b4c454470112cf4.tar.gz | |
Merge pull request #119 from jhunkeler/indexer-buffer-overlow
Indexer buffer overflow and leak(s)
Diffstat (limited to 'src/cli/stasis_indexer/include/helpers.h')
| -rw-r--r-- | src/cli/stasis_indexer/include/helpers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/stasis_indexer/include/helpers.h b/src/cli/stasis_indexer/include/helpers.h index 9cefc05..6e2f93c 100644 --- a/src/cli/stasis_indexer/include/helpers.h +++ b/src/cli/stasis_indexer/include/helpers.h @@ -13,12 +13,12 @@ for ((COUNTER) = 0; (X)[COUNTER].MEMBER != NULL; (COUNTER)++) {} \ } while(0) -struct StrList *get_architectures(struct Delivery ctx[], size_t nelem); -struct StrList *get_platforms(struct Delivery ctx[], size_t nelem); +struct StrList *get_architectures(struct Delivery **ctx, size_t nelem); +struct StrList *get_platforms(struct Delivery **ctx, size_t nelem); int get_pandoc_version(size_t *result); int pandoc_exec(const char *in_file, const char *out_file, const char *css_file, const char *title); -int get_latest_rc(struct Delivery ctx[], size_t nelem); -struct Delivery *get_latest_deliveries(struct Delivery ctx[], size_t nelem); +int get_latest_rc(struct Delivery **ctx, size_t nelem); +struct Delivery **get_latest_deliveries(struct Delivery **ctx, size_t nelem, size_t *result_nelem); int get_files(struct StrList **out, const char *path, const char *pattern, ...); struct StrList *get_docker_images(struct Delivery *ctx, char *pattern); int load_metadata(struct Delivery *ctx, const char *filename); |
