summaryrefslogtreecommitdiff
path: root/src/adb.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-02-01 14:47:27 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-02-01 14:47:27 +0200
commit6df225eac38c07ca7fd7de8e59781508bc8ac12b (patch)
tree74c8c117a87d80f1d309de54ae9096a6ae1e6fce /src/adb.h
parentbd13e774de8e545f5326e0137ba0ed4291e3b721 (diff)
downloadapk-tools-6df225eac38c07ca7fd7de8e59781508bc8ac12b.tar.gz
apk-tools-6df225eac38c07ca7fd7de8e59781508bc8ac12b.tar.bz2
apk-tools-6df225eac38c07ca7fd7de8e59781508bc8ac12b.tar.xz
apk-tools-6df225eac38c07ca7fd7de8e59781508bc8ac12b.zip
mkpkg, adb: validate version and dependency format
Fail if the package or dependency version format is not valid. fixes #10807
Diffstat (limited to 'src/adb.h')
-rw-r--r--src/adb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adb.h b/src/adb.h
index a306d05..c46f7cc 100644
--- a/src/adb.h
+++ b/src/adb.h
@@ -213,7 +213,7 @@ void adb_wo_reset(struct adb_obj *);
void adb_wo_resetdb(struct adb_obj *);
adb_val_t adb_w_obj(struct adb_obj *);
adb_val_t adb_w_arr(struct adb_obj *);
-adb_val_t adb_wo_fromstring(struct adb_obj *o, apk_blob_t);
+int adb_wo_fromstring(struct adb_obj *o, apk_blob_t);
adb_val_t adb_wo_val(struct adb_obj *o, unsigned i, adb_val_t);
adb_val_t adb_wo_val_fromstring(struct adb_obj *o, unsigned i, apk_blob_t);
adb_val_t adb_wo_int(struct adb_obj *o, unsigned i, uint32_t);