diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-08-22 12:34:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-22 12:34:10 -0700 |
commit | 1b01cdbf2e65331879a4668880a191dfac953761 (patch) | |
tree | 35a31e23ac1569298371f67b266067df75166cc2 /Documentation/technical | |
parent | Merge branch 'sg/t5510-test-i18ngrep-fix' (diff) | |
parent | tree-walk: harden make_traverse_path() length computations (diff) | |
download | tgif-1b01cdbf2e65331879a4668880a191dfac953761.tar.xz |
Merge branch 'jk/tree-walk-overflow'
Codepaths to walk tree objects have been audited for integer
overflows and hardened.
* jk/tree-walk-overflow:
tree-walk: harden make_traverse_path() length computations
tree-walk: add a strbuf wrapper for make_traverse_path()
tree-walk: accept a raw length for traverse_path_len()
tree-walk: use size_t consistently
tree-walk: drop oid from traverse_info
setup_traverse_info(): stop copying oid
Diffstat (limited to 'Documentation/technical')
-rw-r--r-- | Documentation/technical/api-tree-walking.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/technical/api-tree-walking.txt b/Documentation/technical/api-tree-walking.txt index bde18622a8..7962e32854 100644 --- a/Documentation/technical/api-tree-walking.txt +++ b/Documentation/technical/api-tree-walking.txt @@ -62,9 +62,7 @@ Initializing `setup_traverse_info`:: Initialize a `traverse_info` given the pathname of the tree to start - traversing from. The `base` argument is assumed to be the `path` - member of the `name_entry` being recursed into unless the tree is a - top-level tree in which case the empty string ("") is used. + traversing from. Walking ------- @@ -140,6 +138,10 @@ same in the next callback invocation. This utilizes the memory structure of a tree entry to avoid the overhead of using a generic strlen(). +`strbuf_make_traverse_path`:: + + Convenience wrapper to `make_traverse_path` into a strbuf. + Authors ------- |