diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-12-05 19:30:01 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-12-05 19:30:01 +0000 |
| commit | ade1c826f9bccf77e76b47f83609ea253a537892 (patch) | |
| tree | 03df56a8c77815ba5e8e5e01987112fa0a53facc /src/plugins/Transports/http/httpstreamreader.h | |
| parent | 7f1fd1cccfca94740f3c22dd411c847eae8c77d3 (diff) | |
| download | qmmp-ade1c826f9bccf77e76b47f83609ea253a537892.tar.gz qmmp-ade1c826f9bccf77e76b47f83609ea253a537892.tar.bz2 qmmp-ade1c826f9bccf77e76b47f83609ea253a537892.zip | |
http: limit maximum buffer size (#497)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8490 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Transports/http/httpstreamreader.h')
| -rw-r--r-- | src/plugins/Transports/http/httpstreamreader.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Transports/http/httpstreamreader.h b/src/plugins/Transports/http/httpstreamreader.h index 3f064305d..aefda863b 100644 --- a/src/plugins/Transports/http/httpstreamreader.h +++ b/src/plugins/Transports/http/httpstreamreader.h @@ -43,12 +43,12 @@ class HTTPInputSource; struct HttpStreamData { char *buf; - long buf_fill; + size_t buf_fill; QString content_type; bool aborted; QHash <QString, QByteArray> header; bool icy_meta_data; - int icy_metaint; + size_t icy_metaint; }; /*! @internal @@ -101,11 +101,11 @@ private: HttpStreamData m_stream; QString m_url; QString m_userAgent; - int m_metacount; + size_t m_metacount; QString m_title; bool m_ready; bool m_meta_sent; - long m_buffer_size; + size_t m_buffer_size; QTextCodec *m_codec; DownloadThread *m_thread; HTTPInputSource *m_parent; |
