Skip to content

Commit

Permalink
net-analyzer/webfuzzer: Fix incompatible pointer to integer conversion
Browse files Browse the repository at this point in the history
and update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/897834
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
  • Loading branch information
listout committed Sep 27, 2023
1 parent 99a9e26 commit 1316421
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bug: https://bugs.gentoo.org/897834
--- a/header.c
+++ b/header.c
@@ -123,7 +123,7 @@ char * url_get_proto( const char * url )
return NULL;

if ( (tmp = xstrdup( url )) )
- while( !isalpha( ptr++ ) );
+ while( !isalpha( *ptr++ ) );

if ( (ret = strstr( ptr, "://" )) )
{
29 changes: 29 additions & 0 deletions net-analyzer/webfuzzer/webfuzzer-0.2.0-r3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit toolchain-funcs

DESCRIPTION="Poor man's web vulnerability scanner"
HOMEPAGE="http://gunzip.altervista.org/g.php?f=projects"
SRC_URI="http://gunzip.altervista.org/webfuzzer/webfuzzer-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

S=${WORKDIR}/devel
PATCHES=(
"${FILESDIR}"/${P}-flags.patch
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-clang16-build-fix.patch
)

src_compile() {
emake CC="$(tc-getCC)"
}

src_install() {
dodoc CHANGES README TODO
dobin webfuzzer
}

0 comments on commit 1316421

Please sign in to comment.