aboutsummaryrefslogtreecommitdiffstats
path: root/Str.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-23Reduce memory reallocation due to StrgrowTatsuya Kinoshita1-1/+5
2021-03-21Check STR_SIZE_MAX in Strcat_charTatsuya Kinoshita1-2/+0
2021-03-20Prevent very small allocation in Str.cTatsuya Kinoshita1-10/+20
2021-03-19Decrease STR_SIZE_MAX to prevent large memory usageTatsuya Kinoshita1-1/+1
2021-03-04Prevent redundant memory reallocation in Str.cTatsuya Kinoshita1-15/+8
2021-03-04Prevent unneeded Strgrow in Strinsert_charTatsuya Kinoshita1-1/+1
2021-03-04Consider Strgrow overflow in Strinsert_charTatsuya Kinoshita1-1/+3
2021-03-03Prevent unneeded memory allocation in StrgrowTatsuya Kinoshita1-6/+8
2021-03-02Prevent large memory usage and null-deref in Str.cTatsuya Kinoshita1-1/+27
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31579 Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31589
2021-02-28Prevent zero size allocation in Str.cTatsuya Kinoshita1-4/+4
2021-02-28Prevent unintentional integer overflow in Strcat_charp_nTatsuya Kinoshita1-1/+1
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31500
2021-02-28Prevent unintentional integer overflow in StrgrowTatsuya Kinoshita1-1/+1
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31467
2021-02-27One more fix overflow due to StrgrowTatsuya Kinoshita1-2/+5
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31397
2021-02-26Fix potential overflow due to Str.cTatsuya Kinoshita1-8/+34
2021-02-26Fix integer overflow due to StrgrowTatsuya Kinoshita1-0/+5
Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31397
2016-12-10Prevent heap-buffer-overflow in Strnew_size()Tatsuya Kinoshita1-0/+2
Bug-Debian: https://github.com/tats/w3m/issues/72
2016-08-30Fix potential heap buffer corruption due to StrgrowKuang-che Wu1-2/+2
If Str.length = 5 and area_size = 6, the result of Strgrow is still area_size = 6. For such case, Strcat_char and Strinsert_char will overflow one byte.
2015-08-11Use fgetc in while loops, use int instead of charDavid Crosby1-10/+4
2015-07-25Strnew_charp and co do not modify the char* inputRichard Quirk1-8/+8
2015-01-15Do not use C99 printf format specifiers and asprintfTatsuya Kinoshita1-20/+96
2015-01-15Correct printf arguments and use asprintfScarlett1-96/+20
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2 * Str.c: Use asprintf() instead of rolling our own printf string length detection. * cookie.c: Pass the char pointer in the string struct to printf %s instead of the string struct itself. Print time_t using %lld instead of %ld to allow for 64-bit time_t. * main.c: Print a long int using the correct format specifier. * map.c: Print size_t using the correct format specifier.
2013-08-04Check length for Strchop()Tatsuya Kinoshita1-2/+2
2011-05-04Adding upstream version 0.5.1upstream/0.5.1Tatsuya Kinoshita1-0/+557
2002-12-24[w3m-dev 03595] tolower, toupperFumitoshi UKAI1-3/+3
* Str.c (Strlower): TOLOWER (Strupper): TOUPPER * backend.c: delete ctype.h * etc.c (gethtmlcmd): TOLOWER * file.c (readHeader): TOLOWER (checkOverWrite): TOLOWER (guess_charset): TOLOWER * ftp.c: delete ctype.h * indep.c (strcasecmp): TOLOWER (strncasecmp): TOLOWER (strcasematch): TOLOWER * istream.c: include myctype.h (ssl_get_certificate): TOLOWER * mailcap.c (mailcapMatch): TOLOWER * main.c (_quitfm): TOLOWER * menu.c (accesskey_menu): TOLOWER * mimehead.c: include myctype.h (decodeWord): TOUPPER * mktable.c: delete ctype.h, include myctype.h (main): IS_SPACE * myctype.h: delete ctype.h (TOLOWER): added (TOUPPER): added * parsetagx.c (parse_tag): TOLOWER * rc.c (str_to_bool): TOLOWER (str_to_color): TOLOWER * regex.c: delete ctype.h, include myctype.h (TOLOWER): added (TOUPPER): added (regmatch1): TOLOWER (matchWhich): TOLOWER, TOUPPER From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2001-12-21[w3m-dev 02692] w3m on linux/ia64Fumitoshi UKAI1-1/+2
From: Fumitoshi UKAI <ukai@debian.or.jp>
2001-11-29[w3m-dev 02584] code cleanup againFumitoshi UKAI1-2/+2
From: Fumitoshi UKAI <ukai@debian.or.jp>
2001-11-24run make indentFumitoshi UKAI1-8/+8
2001-11-16follow autoconf conventions, #include cleanupsFumitoshi UKAI1-2/+2
2001-11-15Update to w3m-0.2.1-inu-1.6.Akinori Ito1-1/+1
2001-11-09Updates from 0.2.1 into 0.2.1-inu-1.5release-0-2-1-inu-1-5Akinori Ito1-1/+1