From nobody Fri Jan 12 18:08:29 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TBTzy1NsQz57H86; Fri, 12 Jan 2024 18:08:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TBTzy0rBrz4qSS; Fri, 12 Jan 2024 18:08:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705082910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5kFrSNZ0IDnOccRL3OH9zR8xYR3HrbeZRNSrEp0SSQM=; b=ADllTzI97ZecBsl7SJrDgEOPOhUiKxkDKRddBRd2pklsDFsO8cFffLxlGsh1Zc16GBk2Cy Q94xACTCp0aP20NhXXPKkLM+mvOfOdsLI837fC8SSfBprb22gduuqOgnYSm7S6dARZSzub FnbYhGKe/jalXXwUeLZpV8vMeunLSKZIe2W1R4cRu6rZ3tIC+L8TO1W9508KqvDVg0cLj0 2BlmLPL7qX/SbNJQGJ+iho6XiEg2KmpsliQJOUdV/owmWsIEajODI7dUWFe2M/XCp/pO3f X/Rp6rhGw10u4ViEk5PNwHsP52YEGqZgBMXIj4IYBBENfMS3Qvu+WZqm+JYcSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705082910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5kFrSNZ0IDnOccRL3OH9zR8xYR3HrbeZRNSrEp0SSQM=; b=NkI+K408GXliWmPQWBYbDTTHBcZnufDdERBtMr0F8p2f/1HBcF9Mnq1MdRNFTXSxkJzO5l O14iP2aM7kvtOBboq2x3YBJKnJI/Icr72tY8uweHUi4s1RzVAuI4emNLhVVzL9/b29TVwP lKf+ga7/juep3NL7MR7/65oICWlFs93sH1zfY78u0mNdO+QQ9kOc6iDmtsVk3K5UiVidDq S9aR6rZGjpBqNU2PiAhdtYIZpyvkHOyb9jSZ4BRbTgnIjyo/cUjsTF9nEzHRs2DQlhEXPs Eu6zD62JbKHS16wa2BoCbFuGzhYvYe1HF2VP+dWYpydclDuc5fRqPk53NzYK0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705082910; a=rsa-sha256; cv=none; b=EEG2OPxm/P3Se5VZj+I69AXgQcW5Y/1/WX4Cu1TwHv5nfNT6C2cKhGCFRb+tLzk5Gvwb14 X5go3pRuZQvbFwse+g3zuaZSsvyqt7DcCh11XqBGNVwOt1VAtObDBdYWBu7PKXatj7BWvQ wqFuNCVIWoagxxUHEkN+kBS83mCWuTiCxlHtNRZi+hM/foOpO4762WPO6Ed3zfo5riJ3Ey nv9iPg9R1jc8F/AttMCOT5MFhrImInAYEr6Mt1RVC7SQDNL+SMC6uFm+n1LVwE3JLD3LAx wHzbI/WbKhhHJDuDWoVPTaM1JNhf2sPpVGanUoK5npslyFHs5U95CfBadgLIIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TBTzx70rbz1Bj6; Fri, 12 Jan 2024 18:08:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40CI8TTw018661; Fri, 12 Jan 2024 18:08:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40CI8TbO018658; Fri, 12 Jan 2024 18:08:29 GMT (envelope-from git) Date: Fri, 12 Jan 2024 18:08:29 GMT Message-Id: <202401121808.40CI8TbO018658@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikhail Teterin Subject: git: a7b61a78f298 - main - security/pdfcrack: upgrade from 0.16 to 0.20 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a7b61a78f2981dd86d947bc09e8f187d10416e57 Auto-Submitted: auto-generated The branch main has been updated by mi: URL: https://cgit.FreeBSD.org/ports/commit/?id=a7b61a78f2981dd86d947bc09e8f187d10416e57 commit a7b61a78f2981dd86d947bc09e8f187d10416e57 Author: Mikhail Teterin AuthorDate: 2024-01-12 18:05:13 +0000 Commit: Mikhail Teterin CommitDate: 2024-01-12 18:08:25 +0000 security/pdfcrack: upgrade from 0.16 to 0.20 Changes: https://sourceforge.net/p/pdfcrack/news/ Fix-up compiler warnings in md5-code. --- security/pdfcrack/Makefile | 3 +- security/pdfcrack/distinfo | 6 +-- security/pdfcrack/files/patch-md5 | 88 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 5 deletions(-) diff --git a/security/pdfcrack/Makefile b/security/pdfcrack/Makefile index d2879103154e..a00743f0feec 100644 --- a/security/pdfcrack/Makefile +++ b/security/pdfcrack/Makefile @@ -1,6 +1,5 @@ PORTNAME= pdfcrack -PORTVERSION= 0.16 -PORTREVISION= 1 +PORTVERSION= 0.20 CATEGORIES= security print MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} diff --git a/security/pdfcrack/distinfo b/security/pdfcrack/distinfo index 36db0016cf5e..bd26b9bf8782 100644 --- a/security/pdfcrack/distinfo +++ b/security/pdfcrack/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1510857129 -SHA256 (pdfcrack-0.16.tar.gz) = 7865b203074ccfd5c612c8ce00c46ffcb4fabaa26154ce9304dfc668c7cb73ef -SIZE (pdfcrack-0.16.tar.gz) = 34467 +TIMESTAMP = 1705079287 +SHA256 (pdfcrack-0.20.tar.gz) = 7b8b29b18fcd5cb984aeb640ee06edf09fede4709b59c32fee4f2d86860de5b4 +SIZE (pdfcrack-0.20.tar.gz) = 35647 diff --git a/security/pdfcrack/files/patch-md5 b/security/pdfcrack/files/patch-md5 new file mode 100644 index 000000000000..1857662bf6cd --- /dev/null +++ b/security/pdfcrack/files/patch-md5 @@ -0,0 +1,88 @@ +--- md5.h 2015-07-25 16:10:57.000000000 -0400 ++++ md5.h 2024-01-12 12:57:19.536200000 -0500 +@@ -20,17 +20,18 @@ + #ifndef _MD5_H_ + #define _MD5_H_ ++#include + #include + + void +-md5(const uint8_t *msg, const unsigned int msgLen, uint8_t *digest); ++md5(const uint8_t *msg, size_t msgLen, uint8_t *digest); + + /** init function for md5_50 which chooses a md5_50 optimised for msgLen, + if one is available */ + void +-md5_50_init(const unsigned int msgLen); ++md5_50_init(size_t msgLen); + + /** md5_50 is basically for(i=0; i<50; i++) { md5(msg, msgLen, msg); } */ + void +-md5_50(uint8_t *msg, const unsigned int msgLen); ++md5_50(uint8_t *msg, size_t msgLen); + + #endif /** _MD5_H_ */ +--- md5.c 2022-10-31 09:55:15.000000000 -0400 ++++ md5.c 2024-01-12 12:59:03.846526000 -0500 +@@ -48,20 +48,18 @@ + #define DD 0x10325476 + +-static void (*md5_50_variant)(); +-static void md5_50f(uint8_t *msg, const unsigned int msgLen); +-static void md5_50s(uint8_t *msg, const unsigned int msgLen); ++static void (*md5_50_variant)(uint8_t *, size_t msgLen); + + void +-md5(const uint8_t *msg, const unsigned int msgLen, uint8_t *digest) { ++md5(const uint8_t *msg, size_t msgLen, uint8_t *digest) { + uint32_t x[16]; + register uint32_t a, b, c, d; + uint32_t aa, bb, cc, dd; +- int n64; +- int i, j; +- unsigned int k; ++ size_t n64, i; ++ int j; ++ size_t k; + + /** compute number of 64-byte blocks + (length + pad byte (0x80) + 8 bytes for length) */ +- n64 = ((int)msgLen + 72) / 64; ++ n64 = (msgLen + 72) / 64; + + /** initialize a, b, c, d */ +@@ -76,5 +74,5 @@ + + /** grab a 64-byte block */ +- for (j = 0; j < 16 && (signed)k < (signed)msgLen - 3; ++j, k += 4) ++ for (j = 0; j < 16 && k + 3 < msgLen; ++j, k += 4) + x[j] = ((((((unsigned)msg[k+3] << 8) + (unsigned)msg[k+2]) << 8) + (unsigned)msg[k+1]) << 8) + msg[k]; + if (i == n64 - 1) { +@@ -198,5 +196,5 @@ + + static void +-md5_50s(uint8_t *msg, const unsigned int msgLen) { ++md5_50s(uint8_t *msg, size_t msgLen) { + int i; + for(i=0; i<50; i++) { md5(msg, msgLen, msg); } +@@ -205,5 +203,5 @@ + /** fast version of "for(i=0; i<50; i++) { md5(msg, 16, msg); }" */ + static void +-md5_50f(uint8_t *msg, const unsigned int msgLen __attribute__((unused))) { ++md5_50f(uint8_t *msg, size_t msgLen __attribute__((unused))) { + register uint32_t a, b, c, d; + int i; +@@ -323,5 +321,5 @@ + + void +-md5_50_init(const unsigned int msgLen) { ++md5_50_init(size_t msgLen) { + if(msgLen == 16) + md5_50_variant = &md5_50f; +@@ -331,5 +329,5 @@ + + void +-md5_50(uint8_t *msg, const unsigned int msgLen) { ++md5_50(uint8_t *msg, size_t msgLen) { + md5_50_variant(msg, msgLen); + }