Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Crash when starting with a build from master using socksAuthCredentials in config #86

@DeadSix27

Description

@DeadSix27

I get this error:

$ sudo ./polipo
polipo: atom.c:187: releaseAtom: Assertion `atom->refcount >= 1 && atom->refcount < LARGE_ATOM_REFCOUNT' failed.
Aborted (core dumped)

Caused by config option:
socksAuthCredentials = "x*******:H*********N"

I double checked whether its correctly formatted, but it is

"SOCKS4a (or SOCKS5) credentials username:password"

I had to use a git master build as I desperately need that feature (->socks5 parent auth)

EDIT: I checked again, and apparently in preinitSocks()
the code goes into:
else if (rc == 0) {
// separator ':' not found

and rc is == 0 because in atomSplit() the code goes into
p = memchr(atom->string, c, atom->length);
if(p == NULL) <-- here

so memchr fails/is NULL @ that point causing the whole issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions