Skip to content

Commit ba6acd9

Browse files
committed
0.2.27
1 parent b2ebd9f commit ba6acd9

File tree

5 files changed

+10
-35
lines changed

5 files changed

+10
-35
lines changed

Changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.2.27
2+
3+
2026-02-22 Brecht Sanders https://github.com/brechtsanders/
4+
5+
* avoid calling strlen() on NULL value in dirtrav_prop_get_relative_path
6+
17
0.2.26
28

39
2026-02-22 Brecht Sanders https://github.com/brechtsanders/

build/libdirtrav_static.depend

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1 @@
11
# depslib dependency file v1.0
2-
1771754728 source:z:\libdirtrav\src\dirtrav.c
3-
"dirtrav_version.h"
4-
<string.h>
5-
<sys/types.h>
6-
<dirent.h>
7-
<sys/stat.h>
8-
<stdio.h>
9-
<windows.h>
10-
<sddl.h>
11-
<shlwapi.h>
12-
<sys/types.h>
13-
<pwd.h>
14-
<limits.h>
15-
<unistd.h>
16-
"dirtrav.h"
17-
"dirtravw.h"
18-
<windows.h>
19-
20-
1762617019 z:\libdirtrav\include\dirtrav_version.h
21-
22-
1762290184 z:\libdirtrav\include\dirtrav.h
23-
<stdlib.h>
24-
<stdint.h>
25-
<sys/stat.h>
26-
27-
1762290184 z:\libdirtrav\include\dirtravw.h
28-
<stdlib.h>
29-
<stdint.h>
30-
<sys/stat.h>
31-
<wchar.h>
32-

build/tree.cbp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<Option object_output="obj/Debug64/" />
6666
<Option type="1" />
6767
<Option compiler="MINGW64" />
68-
<Option parameters="C:\" />
68+
<Option parameters="R:/winlibs_staging_ucrt64/inst_winlibs-tools-1.0.17" />
6969
<Compiler>
7070
<Add option="-g" />
7171
</Compiler>

include/dirtrav_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ THE SOFTWARE.
4747
/*! \brief minor version number */
4848
#define DIRTRAV_VERSION_MINOR 2
4949
/*! \brief micro version number */
50-
#define DIRTRAV_VERSION_MICRO 25
50+
#define DIRTRAV_VERSION_MICRO 27
5151
/*! @} */
5252

5353
/*! \cond PRIVATE */

src/dirtrav.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ DLL_EXPORT_DIRTRAV const DIRCHAR* DIRTRAVFN(prop_get_top_path) (DIRTRAVFN(entry)
710710

711711
DLL_EXPORT_DIRTRAV const DIRCHAR* DIRTRAVFN(prop_get_relative_path) (DIRTRAVFN(entry) entry)
712712
{
713-
size_t toppathlen = DIRSTRLEN(((struct DIRTRAVFN(entry_internal_struct)*)entry)->topinfo->fullpath);
713+
size_t toppathlen = (((struct DIRTRAVFN(entry_internal_struct)*)entry)->topinfo->fullpath ? DIRSTRLEN(((struct DIRTRAVFN(entry_internal_struct)*)entry)->topinfo->fullpath) : 0);
714714
return entry->fullpath + toppathlen;
715715
}
716716

@@ -990,7 +990,7 @@ DLL_EXPORT_DIRTRAV DIRCHAR* DIRTRAVFN(userid_to_name) (const DIRCHAR* userid, co
990990
return result;
991991
#else
992992
struct passwd* pw;
993-
char* p = userid;
993+
char* p = (char*)userid;
994994
long long id = strtoll(userid, &p, 10);
995995
if (p == userid || id < 0 || id > (1 << sizeof(pid_t)) - 1)
996996
return NULL;

0 commit comments

Comments
 (0)