RRichard Russonexpando: fix buf_justify buffer overrun
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
iwyu: tidy includes | 10 个月前 | |
refactor: upgrade macro flags to enum flags Turn #define'd flags into enums. Enums provide: - debugger visibility - compiler diagnostics - symbol scoping by convention - easier navigation/search - cleaner documentation generation - type grouping Naming: - enum has singular ending, e.g. Flag - typedef wrapper has plural ending, e.g. Flags Suffix `_NO_FLAGS` has been renamed to `_NONE` for consistency. | 4 个月前 | |
doxy: expando domains | 6 个月前 | |
expando: add find_node helper Add expando_find_node() to recurse through an Expando's tree looking for a matching (did,uid) pair. This allows callers to check if a certain Expando is in use. | 2 个月前 | |
expando: add find_node helper Add expando_find_node() to recurse through an Expando's tree looking for a matching (did,uid) pair. This allows callers to check if a certain Expando is in use. | 2 个月前 | |
expando: add explicit NUL-termination after fread in filter_text() fread() does not NUL-terminate the data it writes. The code relied on buf_reset() having zeroed the entire buffer beforehand. While correct, this is fragile — add an explicit NUL terminator after the read so buf_fix_dptr() cannot scan past the returned data. | 6 个月前 | |
expando: move EnvList out of library | 1 年前 | |
expando: fix buf_justify buffer overrun Avoid writing past the end of the destination buffer when right/center justifying by moving the terminating NUL with the payload and allocating exactly the required final size. Add regression coverage for empty-string padding cases that previously exercised the overrun path. | 1 个月前 | |
Sort include <stddef.h> Semi-scripted change: $ find * -type f \ | grep '\.[ch]$' \ | xargs grep -l 'include.*stddef' \ | while read f; do clang-format -i "$f"; done; Plus manually removing unrelated changes. Fixes: ac6ef83f3229 ("fix: build of imap/auth_sasl.c") Closes: <https://github.com/neomutt/neomutt/issues/4284> Cc: Richard Russon <rich@flatcap.org> Signed-off-by: Alejandro Colomar <alx@kernel.org> | 2 年前 | |
expando: fix OOB read in buf_lower_special() on trailing MUTT_SPECIAL_INDEX When MUTT_SPECIAL_INDEX is the last byte in the string (followed only by NUL), p += 2 advances past the NUL terminator. The next loop iteration reads from beyond the string boundary. Add a guard to break out of the loop if the byte after MUTT_SPECIAL_INDEX is NUL. | 6 个月前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
core: create empty modules Create an empty Module for each library. | 8 个月前 | |
module: tidy cleanup Pass the Module Data to the Module on cleanup() | 4 个月前 | |
module: add Notify object to each globals Add a 'struct Notify *notify' member to every ModuleData struct. Create it with notify_new() in each Module.init() function, set its parent to NeoMutt->notify, and free it in Module.cleanup(). For modules that previously had commented-out init/cleanup code, uncomment the mod_data allocation and deallocation. | 4 个月前 | |
Use MUTT_MEM_CALLOC() Reviewed-by: Pietro Cerutti <gahr@gahr.ch> Signed-off-by: Alejandro Colomar <alx@kernel.org> | 1 年前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
| 1 个月前 | ||
expando: move parsed_until param | 1 年前 | |
iwyu - fix includes | 5 个月前 | |
expando: refactor | 1 年前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
expando: use ARRAYs | 1 年前 | |
iwyu - fix includes | 5 个月前 | |
expando: implement %{long-name} | 8 个月前 | |
expando: fix infinite loop in pad_string() with zero-width padding char If the padding character has zero display width (e.g. a Unicode combining character), pad_cols is 0 and the while loop condition 'pad_cols <= max_cols' never becomes false, hanging the application. Add pad_cols > 0 to the guard so zero-width characters fall through to the space-padding fallback. | 6 个月前 | |
expando: refactor | 1 年前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
refactor: upgrade macro flags to enum flags Turn #define'd flags into enums. Enums provide: - debugger visibility - compiler diagnostics - symbol scoping by convention - easier navigation/search - cleaner documentation generation - type grouping Naming: - enum has singular ending, e.g. Flag - typedef wrapper has plural ending, e.g. Flags Suffix `_NO_FLAGS` has been renamed to `_NONE` for consistency. | 4 个月前 | |
refactor: upgrade macro flags to enum flags Turn #define'd flags into enums. Enums provide: - debugger visibility - compiler diagnostics - symbol scoping by convention - easier navigation/search - cleaner documentation generation - type grouping Naming: - enum has singular ending, e.g. Flag - typedef wrapper has plural ending, e.g. Flags Suffix `_NO_FLAGS` has been renamed to `_NONE` for consistency. | 4 个月前 | |
tidy code - tidy include guards - drop unused menu refs | 1 个月前 | |
expando: rename RenderData to RenderCallback The struct doesn't contain any data, just callback functions. | 1 年前 | |
refactor: upgrade macro flags to enum flags Turn #define'd flags into enums. Enums provide: - debugger visibility - compiler diagnostics - symbol scoping by convention - easier navigation/search - cleaner documentation generation - type grouping Naming: - enum has singular ending, e.g. Flag - typedef wrapper has plural ending, e.g. Flags Suffix `_NO_FLAGS` has been renamed to `_NONE` for consistency. | 4 个月前 | |
doxy: add function descriptions | 6 个月前 | |
update copyright dates Add any missing credits for 2025. | 8 个月前 | |
expando: rename some uids Rename some Expando UIDs for consistency. - ED_EMA_STRF -> ED_EMA_DATE_STRF - ED_EMA_STRF_LOCAL -> ED_EMA_DATE_STRF_LOCAL - ED_FOL_STRF -> ED_FOL_DATE_STRF - ED_GLO_CERTIFICATE_PATH -> ED_SMI_CERTIFICATE_PATH - ED_GLO_SORT -> ED_GLO_CONFIG_SORT - ED_GLO_SORT_AUX -> ED_GLO_CONFIG_SORT_AUX - ED_GLO_USE_THREADS -> ED_GLO_CONFIG_USE_THREADS - ED_PAT_EXPRESION -> ED_PAT_EXPRESSION | 1 年前 |