Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase URL length limit #441

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/axel.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#endif

/* Compiled-in settings */
#define MAX_STRING ((size_t)1024)
#define MAX_STRING ((size_t)8100)
#define MAX_ADD_HEADERS 10
#define MAX_REDIRECT 20
#define DEFAULT_IO_TIMEOUT 120
Expand Down
4 changes: 2 additions & 2 deletions src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ conn_info(conn_t *conn)
return conn_info_ftp(conn);
}

char s[1005];
char s[8005];
long long int i = 0;

struct urlseq *urlseq = urlseq_init(conn->conf->max_redirect);
Expand All @@ -448,7 +448,7 @@ conn_info(conn_t *conn)
break;
if ((t = http_header(conn->http, "location:")) == NULL)
return 0;
sscanf(t, "%1000s", s);
sscanf(t, "%8000s", s);
if (s[0] == '/') {
abuf_printf(conn->http->headers, "%s%s:%i%s",
scheme_from_proto(conn->proto),
Expand Down