Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix longjmp to invalid address on jpeg init error | Sergei Rogachev | 2016-08-14 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | Libjpeg used in NetSurf for decoding of JPEG images handles exceptions using a pair of non-local jump functions: setjmp() and longjmp(). When a decompression context is created via a call to the function jpeg_create_decompress() the caller passes a structure jpeg_decompress_struct as a parameter. This structure should has a validly initialized jump buffer, so the initialization or other functions called in future can jump to the exception handling context. The jpeg backend of NetSurf now initializes libjpeg mistakenly: jump buffer is filled after the call to jpeg_create_decompress(). It results in jump to random addresses in the case of exception caught during operation of the function jpeg_create_decompress(). The patch moves the initialization of jump buffer before the call to jpeg_create_decompress(). Signed-off-by: Sergei Rogachev <rogachevsergei@gmail.com> | ||||
* | fix bitmap modification callback calling for bmp image handler | Vincent Sanders | 2016-08-14 | 1 | -4/+10 |
| | | | | | | | | bitmap file decoding is done at first call to redraw but was not calling the modified callback at the correct time immediately after decode so frontend image chnages were not being done. This caused nsgtk to fail to apply its colour space fixups so red was swapped with blue. | ||||
* | Buildsystem: Make curl/openssl usage build-time options. | Michael Drake | 2016-08-13 | 2 | -2/+6 |
| | |||||
* | ensure url database destructor cleans up correctly | Vincent Sanders | 2016-08-09 | 1 | -2/+7 |
| | |||||
* | extend url database unit testing to cover more API | Vincent Sanders | 2016-08-09 | 2 | -11/+26 |
| | |||||
* | fix urldb warning and test build | Vincent Sanders | 2016-08-08 | 1 | -3/+4 |
| | |||||
* | update urldb dump to use LOG rather than writing to stderr directly | Vincent Sanders | 2016-08-08 | 1 | -8/+19 |
| | |||||
* | Allow certificate verification user prompt creation to return errors | Vincent Sanders | 2016-07-31 | 1 | -0/+9 |
| | |||||
* | URL unescape: return the new length to the caller. | Michael Drake | 2016-07-24 | 1 | -3/+2 |
| | | | | | | | | The avoids situations were we threw away the length, only for the caller to have to strlen the returned string. Note, there seems to be a case of the amiga front end writing beyond end of allocation. Added a TODO for now. | ||||
* | Data URL handling: Use url_unescape rather than curl. | Michael Drake | 2016-07-24 | 1 | -13/+10 |
| | |||||
* | Whitespace: Convert spaces to tab for indent. | Michael Drake | 2016-07-24 | 1 | -3/+3 |
| | |||||
* | Actually use utils/inet.h instead of sys/select.h | Daniel Silverstone | 2016-06-27 | 1 | -2/+1 |
| | |||||
* | fetch.h needs sys/select.h for the fd_set type et al. | Daniel Silverstone | 2016-06-27 | 1 | -0/+2 |
| | |||||
* | Move fetcher_fdset to fetch.h (and rename to fetch_fdset). Maybe not ideal ↵ | Daniel Silverstone | 2016-06-27 | 3 | -28/+28 |
| | | | | but better | ||||
* | Refactor the fdset acquisition into the fetchers to stop fetch.c including ↵ | Daniel Silverstone | 2016-06-27 | 3 | -9/+38 |
| | | | | curl.h | ||||
* | Fix handling of certificate chains | Vincent Sanders | 2016-06-27 | 1 | -145/+251 |
| | | | | | | | When processing a x509 certificate chain from openssl it is necessary to allow teh entire chain to be processed rather than halting processing at the first certificate with an error. This allows errors with a certificate authority to be examined. | ||||
* | msplit public url database API out for frontends | Vincent Sanders | 2016-06-13 | 3 | -193/+32 |
| | |||||
* | Move javascript content handler as appropriate for updated source format | Vincent Sanders | 2016-06-07 | 81 | -2/+100697 |
| | |||||
* | reduce unecessary usage of content headers | Vincent Sanders | 2016-06-06 | 2 | -2/+2 |
| | |||||
* | Allow include directories to be added by sub makefiles | Vincent Sanders | 2016-06-06 | 19 | -37/+39 |
| | |||||
* | fixup rsvg image handler for content API changes | Vincent Sanders | 2016-06-06 | 1 | -2/+4 |
| | |||||
* | Update content to split public and internal API | Vincent Sanders | 2016-06-06 | 20 | -255/+96 |
| | |||||
* | move plotters header into public API | Vincent Sanders | 2016-05-30 | 6 | -6/+5 |
| | |||||
* | move desktop window header into public API | Vincent Sanders | 2016-05-30 | 1 | -1/+1 |
| | |||||
* | move mouse and pointer state header into public API | Vincent Sanders | 2016-05-30 | 1 | -1/+1 |
| | |||||
* | move fetch header into public API | Vincent Sanders | 2016-05-30 | 3 | -3/+3 |
| | |||||
* | move misc header into public API | Vincent Sanders | 2016-05-30 | 7 | -7/+7 |
| | |||||
* | move bitmap API header to core include directory | Vincent Sanders | 2016-05-26 | 12 | -188/+11 |
| | |||||
* | move the CSS content handler | Vincent Sanders | 2016-05-26 | 16 | -3/+6576 |
| | |||||
* | move image content handlers to accomodate core build changes | Vincent Sanders | 2016-05-23 | 29 | -3/+4830 |
| | |||||
* | remove all core usage of warn_user API | Vincent Sanders | 2016-04-26 | 1 | -1/+2 |
| | |||||
* | split out the layout glyph sizing and splitting API | Vincent Sanders | 2016-04-23 | 1 | -1/+1 |
| | | | | | This refactors the core "font" sizing API to be handled through gui function tables similar to every other core/frontend calling API. | ||||
* | need strings.h for strncasecmp on freebsd | Vincent Sanders | 2016-04-21 | 2 | -0/+2 |
| | |||||
* | Split utils header into string functions and everything else | Vincent Sanders | 2016-04-21 | 6 | -63/+26 |
| | | | | | split out the string handling API from the rest of the utils header and fix up all the fallout. | ||||
* | update content wallclock timing to use monotonic time interface | Vincent Sanders | 2016-04-20 | 2 | -7/+11 |
| | |||||
* | use monotonic clock call for html reflow timing | Vincent Sanders | 2016-04-20 | 1 | -3/+3 |
| | |||||
* | stop content header dragging in so many other headers | Vincent Sanders | 2016-04-19 | 2 | -1/+2 |
| | |||||
* | remove curl fetchers use of the wallclock API | Vincent Sanders | 2016-04-19 | 1 | -13/+15 |
| | | | | | | | | | | The wallclock() API uses gettimeofday which can be affected by the the systems clock being changed etc. The curl fetcher usage of this API is to generate a timing delta and does not cope with the gettimeofday issues. This changes the fetcher to use the nsutils library monotonic time function which does not suffer from the issues with gettimeofday. | ||||
* | move dir_sort_alpha function from generic utils to one specific place it is used | Vincent Sanders | 2016-04-19 | 1 | -0/+43 |
| | |||||
* | Reduce unecessary use of directory entry headers | Vincent Sanders | 2016-04-19 | 3 | -4/+3 |
| | | | | | | | The config header was causing many source files to unecessarily include the dirent headers causing extra dependancies. This has been fixed by providing a utility dirent header that provides a common API across all platforms while removing the unecessary dirent header usage. | ||||
* | reduce content header interdependancy | Vincent Sanders | 2016-04-18 | 5 | -23/+54 |
| | |||||
* | clean up header usage in content hnadling core | Vincent Sanders | 2016-04-18 | 1 | -20/+10 |
| | |||||
* | Reduce unecessary use of networking headers | Vincent Sanders | 2016-04-17 | 3 | -3/+4 |
| | | | | | | | | The utility configuration header dragged in a number of bsd sockets and related API as a side effect of setting up the configuration. By splitting the header and API setup into a separate header only the small number of places that need the functionality explitly include it. | ||||
* | urldb no longer uses curl directly but it does need correct network includes | Vincent Sanders | 2016-04-17 | 1 | -0/+1 |
| | | | | | | The update to remove curl usage from urldb must pull in the utility config header instead to get inet_aton and such or compoles on some platforms fail. | ||||
* | create date and time to seconds since epoch processing utility function | Vincent Sanders | 2016-04-16 | 2 | -41/+64 |
| | | | | | | | currently NetSurf uses curl_getdate to convert textural date and time strings into seconds since epoch. It is betetr to move this functionality to a utility function so curl_getdate can easily be replaced if required. | ||||
* | complete the rename of the gui browser table | Vincent Sanders | 2016-04-16 | 4 | -13/+13 |
| | | | | | | When the operations tables were created the browser table was renamed to miscellaneous except the actual rename patch was never applied, this fixes that situation. | ||||
* | Fix size_t printf formatting | Vincent Sanders | 2016-03-17 | 4 | -24/+37 |
| | | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted. | ||||
* | revert urldb include fixes as tehy cause build issues elsewhere and failed ↵ | Vincent Sanders | 2016-02-12 | 1 | -4/+0 |
| | | | | to fix the warning | ||||
* | fix more freebsd warnings | Vincent Sanders | 2016-02-12 | 1 | -0/+4 |
| | |||||
* | remove reliance on GLib from monkey frontend | Vincent Sanders | 2016-02-12 | 1 | -1/+1 |
| | | | | | This changes the monkey implemntation to use a simple scheduler list and select instead of glib events. |