diff options
| author | Lars Ingebrigtsen | 2017-06-07 16:17:47 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-06-07 16:17:47 +0200 |
| commit | 62523863780d3894c92f84dd474278eeddc4a0e0 (patch) | |
| tree | 06ba1867972acaaa0cdb15d226882c573a158836 /src/alloc.c | |
| parent | 43885eac09d7c69ecbac08c033d33381e21f48a2 (diff) | |
| download | emacs-62523863780d3894c92f84dd474278eeddc4a0e0.tar.gz emacs-62523863780d3894c92f84dd474278eeddc4a0e0.zip | |
(url-cookie-host-can-set-p): Protect against zero-length domains
* lisp/url/url-cookie.el (url-cookie-host-can-set-p): Protect
against zero-length domains.
Backtrace of a real-world site that triggers a bug:
Debugger entered--Lisp error: (args-out-of-range "" 0)
url-cookie-host-can-set-p("www.washingtonpost.com" "")
url-cookie-handle-set-cookie("utm_term=0;Expires=Thursday,
01-January-1970 00:00:00 GMT; path=/; domain=")
url-http-handle-cookies()
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions