summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml12
-rw-r--r--src/jplist.c1
-rw-r--r--src/oplist.c1
-rw-r--r--src/out-default.c3
-rw-r--r--src/out-limd.c3
-rw-r--r--src/out-plutil.c3
-rw-r--r--src/xplist.c1
7 files changed, 18 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 233a584..54273b4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,7 +17,7 @@ jobs:
- name: prepare environment
run: |
echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: autogen
@@ -37,7 +37,7 @@ jobs:
DESTDIR=`pwd`/dest make install
tar -C dest -cf libplist.tar usr
- name: publish artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: libplist-latest_${{env.target_triplet}}
path: libplist.tar
@@ -53,7 +53,7 @@ jobs:
fi
pip3 install --break-system-packages cython
shell: bash
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: autogen
@@ -92,7 +92,7 @@ jobs:
DESTDIR=`pwd`/dest make install
tar -C dest -cf libplist.tar usr
- name: publish artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: libplist-latest_macOS
path: libplist.tar
@@ -131,7 +131,7 @@ jobs:
echo "dest=$dest" >> $GITHUB_ENV
echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
git config --global core.autocrlf false
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: autogen
@@ -160,7 +160,7 @@ jobs:
DESTDIR=`pwd`/dest make install
tar -C dest -cf libplist.tar ${{ env.dest }}
- name: publish artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: libplist-latest_${{ matrix.arch }}-${{ env.dest }}
path: libplist.tar
diff --git a/src/jplist.c b/src/jplist.c
index dd2e36a..c29f760 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -259,6 +259,7 @@ static plist_err_t node_to_json(node_t node, bytearray_t **outbuf, uint32_t dept
if (coerce) {
Time64_T timev;
if (plist_real_to_time64(node_data->realval, &timev) < 0) {
+ PLIST_JSON_WRITE_ERR("Encountered invalid date value %f\n", node_data->realval);
return PLIST_ERR_INVALID_ARG;
}
struct TM _btime;
diff --git a/src/oplist.c b/src/oplist.c
index 4b3b666..77a99cd 100644
--- a/src/oplist.c
+++ b/src/oplist.c
@@ -303,6 +303,7 @@ static plist_err_t node_to_openstep(node_t node, bytearray_t **outbuf, uint32_t
if (coerce) {
Time64_T timev;
if (plist_real_to_time64(node_data->realval, &timev) < 0) {
+ PLIST_OSTEP_WRITE_ERR("Encountered invalid date value %f\n", node_data->realval);
return PLIST_ERR_INVALID_ARG;
}
struct TM _btime;
diff --git a/src/out-default.c b/src/out-default.c
index 87689d1..13b9d9c 100644
--- a/src/out-default.c
+++ b/src/out-default.c
@@ -233,6 +233,9 @@ static plist_err_t node_to_string(node_t node, bytearray_t **outbuf, uint32_t de
{
Time64_T timev;
if (plist_real_to_time64(node_data->realval, &timev) < 0) {
+#if DEBUG
+ fprintf(stderr, "libplist: ERROR: Encountered invalid date value %f\n", node_data->realval);
+#endif
return PLIST_ERR_INVALID_ARG;
}
struct TM _btime;
diff --git a/src/out-limd.c b/src/out-limd.c
index e47ca0c..83a5e26 100644
--- a/src/out-limd.c
+++ b/src/out-limd.c
@@ -222,6 +222,9 @@ static plist_err_t node_to_string(node_t node, bytearray_t **outbuf, uint32_t de
{
Time64_T timev;
if (plist_real_to_time64(node_data->realval, &timev) < 0) {
+#if DEBUG
+ fprintf(stderr, "libplist: ERROR: Encountered invalid date value %f\n", node_data->realval);
+#endif
return PLIST_ERR_INVALID_ARG;
}
struct TM _btime;
diff --git a/src/out-plutil.c b/src/out-plutil.c
index 3b5bd34..e603f31 100644
--- a/src/out-plutil.c
+++ b/src/out-plutil.c
@@ -239,6 +239,9 @@ static plist_err_t node_to_string(node_t node, bytearray_t **outbuf, uint32_t de
{
Time64_T timev;
if (plist_real_to_time64(node_data->realval, &timev) < 0) {
+#if DEBUG
+ fprintf(stderr, "libplist: ERROR: Encountered invalid date value %f\n", node_data->realval);
+#endif
return PLIST_ERR_INVALID_ARG;
}
struct TM _btime;
diff --git a/src/xplist.c b/src/xplist.c
index 3157ab0..b2c134e 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -194,6 +194,7 @@ static plist_err_t node_to_xml(node_t node, bytearray_t **outbuf, uint32_t depth
{
Time64_T timev;
if (plist_real_to_time64(node_data->realval, &timev) < 0) {
+ PLIST_XML_WRITE_ERR("Encountered invalid date value %f\n", node_data->realval);
return PLIST_ERR_INVALID_ARG;
}
struct TM _btime;