Skip to content

Commit

Permalink
upd - Updated libmagic native library
Browse files Browse the repository at this point in the history
---

We've updated the libmagic native library to add some more magic numbers
to the magic database.

---

Type: upd
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Dec 3, 2024
1 parent 5e8e902 commit 0710ef3
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 0 deletions.
Binary file modified Magico.Native/runtimes/linux-arm64/native/libmagic.so
Binary file not shown.
Binary file modified Magico.Native/runtimes/linux-x64/native/libmagic.so
Binary file not shown.
Binary file modified Magico.Native/runtimes/osx-arm64/native/libmagic.dylib
Binary file not shown.
Binary file modified Magico.Native/runtimes/osx-x64/native/libmagic.dylib
Binary file not shown.
Binary file modified Magico.Native/runtimes/win-arm64/native/libmagic.dll
Binary file not shown.
Binary file modified Magico.Native/runtimes/win-x64/native/libmagic.dll
Binary file not shown.
36 changes: 36 additions & 0 deletions assets/0001-fix-Patch-to-fix-readcdf-casting.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 0395e406209298ac60a897d65653d90993b83ecd Mon Sep 17 00:00:00 2001
From: Aptivi <eoflaoevicecity@gmail.com>
Date: Tue, 3 Dec 2024 09:59:19 +0300
Subject: [PATCH 144/144] fix - Patch to fix readcdf casting

---

GCC-14 fails to build readcdf because of missing cast to (const time_t *).

---

Type: fix
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
---
src/readcdf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/readcdf.c b/src/readcdf.c
index 30c3d246..b4869733 100644
--- a/src/readcdf.c
+++ b/src/readcdf.c
@@ -236,7 +236,7 @@ cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info,
} else {
char *c, *ec;
cdf_timestamp_to_timespec(&ts, tp);
- c = cdf_ctime(&ts.tv_sec, tbuf);
+ c = cdf_ctime((const time_t *)&ts.tv_sec, tbuf);
if (c != NULL &&
(ec = strchr(c, '\n')) != NULL)
*ec = '\0';
--
2.43.0.windows.1

Binary file modified assets/magic.mgc
Binary file not shown.

0 comments on commit 0710ef3

Please # to comment.