You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixup! mingw: implement a platform-specific strbuf_realpath()
It is possible (and supported) that `strbuf_realpath()` can work
in-place, i.e. the second parameter passed to the function can refer to
the `buf` field of the first parameter.
Our code was ill-prepared for that, though: we first store a pointer to
the last component (that does not necessarily need to exist) before
calling the `GetFinalPathNameByHandleW()` function. Said function is
totally allowed to produce a longer path than the original one (e.g. by
prefixing it with `\\?\`, a relatively unintuitive Windows-only
concept). Which would overwrite the last component part.
Address that by making a full string copy of the last component.
Signed-off-by: Johannes Schindelin <[email protected]>
0 commit comments