Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ensure url buffer is sufficient to not truncate output | Vincent Sanders | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | fix logging level in duktape binding | Vincent Sanders | 2018-11-06 | 1 | -6/+6 |
| | |||||
* | Slightly nicer handling of js_exec() and errors | Daniel Silverstone | 2018-11-04 | 1 | -19/+47 |
| | |||||
* | check dom call return and improve handling of missing form type | Vincent Sanders | 2018-10-09 | 1 | -22/+30 |
| | |||||
* | rewrite form_successful_controls_dom as form_dom_to_data | Vincent Sanders | 2018-09-29 | 1 | -556/+883 |
| | | | | | | | | | | | | | | | | | | | | | | | | Trying to reason about error propagation and resource leakage within the form submission code was impossible because of the form_successful_controls_dom function. This function was over six hundred lines long, had twenty six top level local variables and six levels of indent in places. This commit splits it out into thirteen shorter and more obvious functions. The resulting operation is identical except errors are properly propagated (all failures were reported as out of memory) and resource management can be reasoned about. The compiler appears to inline the entirety of the code from form_submit() down excepting a handful of leaf functions. This results in similar code output size as previous implementation. The new implementation has a greater number of variables passed to sub functions than desirable because multiple character sets are required to encode names and values in the multipart data list. However as noted the compiler effectively inlines all these functions so this does not actually become a major problem. | ||||
* | gcc on openbsd is unable to reason about res variable usage and generates ↵ | Vincent Sanders | 2018-09-26 | 1 | -1/+1 |
| | | | | bogus warning | ||||
* | fix url encoding to be compatible with nsurl API changes. | Vincent Sanders | 2018-09-26 | 5 | -158/+177 |
| | | | | | As part of this fix the form submission error handling and reporting has been improved. | ||||
* | allow comments to supress implicit fallthrough warnings | Vincent Sanders | 2018-09-07 | 2 | -6/+6 |
| | |||||
* | HTML: Don't try to finish an HTML document's conversion twice. | Michael Drake | 2018-08-27 | 1 | -0/+16 |
| | |||||
* | remove warning by replacing sprintf snprintf | Vincent Sanders | 2018-08-24 | 1 | -1/+5 |
| | |||||
* | remove warning by replacing strcpy with safer strncpy | Vincent Sanders | 2018-08-24 | 1 | -5/+11 |
| | |||||
* | fix size_t format specifiers | Vincent Sanders | 2018-08-18 | 2 | -13/+16 |
| | |||||
* | API: Don't expose urldb_{g|s}et_auth_details to frontends. | Michael Drake | 2018-08-15 | 1 | -0/+21 |
| | |||||
* | Text handling: Display application/json, rather than offering download. | Michael Drake | 2018-08-14 | 1 | -0/+6 |
| | |||||
* | refactor llcache header processing | Vincent Sanders | 2018-08-12 | 1 | -115/+159 |
| | | | | | refactor the header processing in the low level object cache to make cache control header processing more explicit. | ||||
* | Duktape: Make declaration match definition for memcmp and double_div. | Michael Drake | 2018-08-10 | 1 | -3/+3 |
| | |||||
* | Duktape: Make declaration match definition for duk_refzero_check_fast() | Michael Drake | 2018-08-10 | 1 | -1/+1 |
| | |||||
* | Duktape: Make declarations match definitions for fastint-enabled functions. | Michael Drake | 2018-08-10 | 1 | -2/+2 |
| | |||||
* | Duktape: Make declarations match definitions for duk_raw_read_xxx_be | Michael Drake | 2018-08-10 | 1 | -6/+6 |
| | |||||
* | Duktape: Make declarations match definitions for inline functions. | Michael Drake | 2018-08-10 | 1 | -4/+4 |
| | |||||
* | Duktape: Prevent clang static analysis. | Michael Drake | 2018-08-10 | 1 | -0/+3 |
| | |||||
* | Duktape: Update to version 2.3.0 release. | Michael Drake | 2018-08-10 | 3 | -2292/+3974 |
| | |||||
* | Curl fetcher: Jiggle logging levels. | Michael Drake | 2018-08-09 | 1 | -2/+2 |
| | |||||
* | Content: Log URLs with nsurl_access_log(). | Michael Drake | 2018-08-09 | 1 | -9/+9 |
| | | | | | | This reduces the log file size for startup and a single visit to https://www.bbc.co.uk/news from 266133 to 178777 bytes, by not dumping big data URLs over and over into the log. | ||||
* | Curl fetcher: Move poll logging from INFO to DEEPDEBUG. | Michael Drake | 2018-08-09 | 1 | -2/+2 |
| | |||||
* | Browser: Rename function to access bw URL. | Michael Drake | 2018-07-23 | 1 | -1/+1 |
| | |||||
* | Layout: Use box helper for first child checks.glenwalker/bug_0002428 | Michael Drake | 2018-06-29 | 1 | -2/+2 |
| | |||||
* | Box: Add helper to check if box is first child. | Michael Drake | 2018-06-29 | 1 | -0/+11 |
| | |||||
* | Layout: Tidy condition so it can be read. | Michael Drake | 2018-06-29 | 1 | -7/+6 |
| | |||||
* | Plotters: Expose array of font family strings to front ends. | Michael Drake | 2018-05-23 | 1 | -0/+1 |
| | |||||
* | Plotters: Remove width param from path plotter. | Michael Drake | 2018-05-23 | 1 | -2/+2 |
| | | | | We now use the stroke_width in the plot_style. | ||||
* | Plotters: Change stroke width in the plot_style_t to fixed point. | Michael Drake | 2018-05-23 | 2 | -6/+7 |
| | |||||
* | Plotters: Add plot_style_fixed type, and use for font size. | Michael Drake | 2018-05-23 | 5 | -9/+9 |
| | |||||
* | clean up html content handler header use | Vincent Sanders | 2018-05-11 | 12 | -68/+180 |
| | | | | Improve header use in preperation for making browser window a corewindow | ||||
* | move html and text content handlers where they belong | Vincent Sanders | 2018-05-10 | 36 | -3/+28825 |
| | |||||
* | Disc cache: Squash armhf warnings. | Michael Drake | 2018-05-08 | 1 | -2/+2 |
| | |||||
* | Duktape: Squash armhf warnings. | Michael Drake | 2018-05-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | content/handlers/javascript/duktape/duktape.c: In function 'duk_resolve_nonbound_function': content/handlers/javascript/duktape/duktape.c:14609:25: warning: cast increases required alignment of target type [-Wcast-align] duk_push_tval(thr, &((duk_hboundfunc *) h)->target); ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_bi_function_prototype_bind': content/handlers/javascript/duktape/duktape.c:32423:20: warning: cast increases required alignment of target type [-Wcast-align] h_boundtarget = (duk_hboundfunc *) h_target; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_free_hobject': content/handlers/javascript/duktape/duktape.c:46072:23: warning: cast increases required alignment of target type [-Wcast-align] duk_hboundfunc *f = (duk_hboundfunc *) h; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk__mark_hobject': content/handlers/javascript/duktape/duktape.c:47889:23: warning: cast increases required alignment of target type [-Wcast-align] duk_hboundfunc *f = (duk_hboundfunc *) h; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_hobject_refcount_finalize_norz': content/handlers/javascript/duktape/duktape.c:49866:23: warning: cast increases required alignment of target type [-Wcast-align] duk_hboundfunc *f = (duk_hboundfunc *) h; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk__handle_bound_chain_for_call': content/handlers/javascript/duktape/duktape.c:61533:14: warning: cast increases required alignment of target type [-Wcast-align] h_bound = (duk_hboundfunc *) func; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_js_instanceof': content/handlers/javascript/duktape/duktape.c:78165:24: warning: cast increases required alignment of target type [-Wcast-align] duk_push_tval(thr, &((duk_hboundfunc *) func)->target); ^ | ||||
* | Duktape: Squash -Wcast-align warnings on armhf. | Michael Drake | 2018-05-05 | 1 | -2/+26 |
| | |||||
* | Duktape: Make declarations match definitions for inline functions. | Michael Drake | 2018-05-04 | 1 | -4/+4 |
| | |||||
* | Duktape: Make declarations match definitions for fastint-enabled functions. | Michael Drake | 2018-05-04 | 1 | -2/+2 |
| | |||||
* | Duktape: Make declaration match definition for duk_refzero_check_fast() | Michael Drake | 2018-05-04 | 1 | -1/+1 |
| | |||||
* | Duktape: Make declarations match definitions for duk_raw_read_xxx_be | Michael Drake | 2018-05-04 | 1 | -6/+6 |
| | |||||
* | Duktape: Prevent clang static analysis. | Michael Drake | 2018-05-04 | 1 | -0/+3 |
| | |||||
* | Duktape: Update to 2.2.1 release. | Michael Drake | 2018-05-04 | 3 | -165/+213 |
| | |||||
* | HTTPS: restrict ciphersuites | John-Mark Bell | 2018-04-22 | 1 | -0/+18 |
| | |||||
* | Explicitly re-enable TLS session tickets. | John-Mark Bell | 2018-04-22 | 1 | -0/+4 |
| | | | | Libcurl disables this by default. | ||||
* | URLdb: fix comparison | John-Mark Bell | 2018-04-22 | 1 | -1/+1 |
| | |||||
* | Force SSL session caching on, Ubuntu seems to have it off by default | Daniel Silverstone | 2018-04-22 | 1 | -0/+3 |
| | |||||
* | Revert "Disable SSL session ID caching." | Daniel Silverstone | 2018-04-22 | 1 | -3/+0 |
| | | | | This reverts commit debe0e345bf453a58bf319a84d5845cce6b38d8e. | ||||
* | HSTS: make llcache update policy on 3xx responses | John-Mark Bell | 2018-04-22 | 1 | -0/+2 |
| |