On 09/23/2012 12:47 PM, Martin Storsjö wrote:
> From: Duncan Salerno <[email protected]>

> ---
>  libavformat/http.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/http.c b/libavformat/http.c
> index 041a9b0..426e859 100644
> --- a/libavformat/http.c
> +++ b/libavformat/http.c
> @@ -33,7 +33,7 @@
>     only a subset of it. */
>  
>  /* used for protocol handling */
> -#define BUFFER_SIZE 1024
> +#define BUFFER_SIZE 4096
>  #define MAX_REDIRECTS 8
>  
>  typedef struct {
> @@ -377,7 +377,7 @@ static int http_connect(URLContext *h, const char *path, 
> const char *local_path,
>  {
>      HTTPContext *s = h->priv_data;
>      int post, err;
> -    char headers[1024] = "";
> +    char headers[4096] = "";

why not using BUFFER_SIZE while at it?

>      char *authstr = NULL, *proxyauthstr = NULL;
>      int64_t off = s->off;
>      int len = 0;

Since uri are unbounded what should we decide to reject?

lu


_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to