Codebase list lynx / upstream/2.8.8dev.5
Imported Upstream version 2.8.8dev.5 Axel Beckert 9 years ago
9 changed file(s) with 56 addition(s) and 31 deletion(s). Raw diff Collapse all Expand all
0 -- $LynxId: CHANGES,v 1.491 2010/06/21 08:36:29 tom Exp $
0 -- $LynxId: CHANGES,v 1.496 2010/08/25 09:20:04 tom Exp $
11 ===============================================================================
22 Changes since Lynx 2.8 release
33 ===============================================================================
4
5 2010-08-25 (2.8.8dev.5)
6 * modify convert_to_idna() to check for malformed urls (Debian #594300 reports
7 this as CVE-2010-2810) -TD
8 * correct typo in po/makefile.inn from removal of mkdirs.sh in dev.4 (Debian
9 #592078) -TD
10 * correct a sign-extension error in UpdateBoundary(), used for MIME boundary
11 computation, broken in dev.4 compiler-warning fixes -TD
412
513 2010-06-21 (2.8.8dev.4)
614 * check for SSL error when reading response from "GET". This incidentally
00 ; version used for Inno Setup files.
11
22 ; $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$
3 #define LYNX_VERSION "2.8.8dev.4"
3 #define LYNX_VERSION "2.8.8dev.5"
44
55 #define MyAppName "Lynx"
66 #define MyAppPublisher "Thomas E Dickey"
00 /*
1 * $LynxId: HTParse.c,v 1.59 2010/06/20 23:02:58 tom Exp $
1 * $LynxId: HTParse.c,v 1.60 2010/08/25 09:17:08 tom Exp $
22 *
33 * Parse HyperText Document Address HTParse.c
44 * ================================
243243 #ifdef USE_IDNA
244244 static int hex_decode(int ch)
245245 {
246 int result = 0;
246 int result = -1;
247247
248248 if (ch >= '0' && ch <= '9')
249249 result = (ch - '0');
260260 */
261261 static void convert_to_idna(char *host)
262262 {
263 char *buffer = malloc(strlen(host) + 1);
263 size_t length = strlen(host);
264 char *endhost = host + length;
265 char *buffer = malloc(length + 1);
264266 char *output = NULL;
265267 char *src, *dst;
266268 int code;
269 int hi, lo;
267270
268271 if (buffer != 0) {
269 for (dst = buffer, src = host; *src != '\0'; ++dst) {
272 code = TRUE;
273 for (dst = buffer, src = host; src < endhost; ++dst) {
270274 int ch = *src++;
271275
272276 if (ch == HEX_ESCAPE) {
273 int hi = hex_decode(*src++);
274 int lo = hex_decode(*src++);
275
276 *dst = (char) ((hi << 4) | lo);
277 if ((src + 1) < endhost
278 && (hi = hex_decode(src[0])) >= 0
279 && (lo = hex_decode(src[1])) >= 0) {
280
281 *dst = (char) ((hi << 4) | lo);
282 src += 2;
283 } else {
284 CTRACE((tfp, "convert_to_idna: `%s' is malformed\n", host));
285 code = FALSE;
286 break;
287 }
277288 } else {
278289 *dst = (char) ch;
279290 }
280291 }
281 *dst = '\0';
282 code = idna_to_ascii_8z(buffer, &output, IDNA_USE_STD3_ASCII_RULES);
283 if (code == IDNA_SUCCESS) {
284 strcpy(host, output);
285 }
286 FREE(output);
292 if (code) {
293 *dst = '\0';
294 code = idna_to_ascii_8z(buffer, &output, IDNA_USE_STD3_ASCII_RULES);
295 if (code == IDNA_SUCCESS) {
296 strcpy(host, output);
297 } else {
298 CTRACE((tfp, "convert_to_idna: `%s': %s\n",
299 buffer,
300 idna_strerror(code)));
301 }
302 FREE(output);
303 }
287304 free(buffer);
288305 }
289306 }
12411241
12421242 PACKAGE=lynx
12431243 # $Format: "VERSION=$ProjectVersion$"$
1244 VERSION=2.8.8dev.4
1244 VERSION=2.8.8dev.5
12451245
12461246 echo "$as_me:1247: checking for DESTDIR" >&5
12471247 echo $ECHO_N "checking for DESTDIR... $ECHO_C" >&6
2828 dnl
2929 dnl ask PRCS to plug-in the project-version for the configure-script.
3030 dnl $Format: "AC_REVISION($ProjectVersion$)"$
31 AC_REVISION(2.8.8dev.4)
31 AC_REVISION(2.8.8dev.5)
3232
3333 # Save the original $CFLAGS so we can distinguish whether the user set those
3434 # in the environment, or whether autoconf added -O and -g options:
6161 PACKAGE=lynx
6262 dnl ask PRCS to plug-in the project-version for the packages.
6363 # $Format: "VERSION=$ProjectVersion$"$
64 VERSION=2.8.8dev.4
64 VERSION=2.8.8dev.5
6565
6666 AC_SUBST(PACKAGE)
6767 AC_SUBST(VERSION)
33 # or Lynx_Dir:lynx.cfg (VMS)
44 #
55 # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$
6 #PRCS LYNX_VERSION "2.8.8dev.4"
6 #PRCS LYNX_VERSION "2.8.8dev.5"
77 #
88 # $Format: "#PRCS LYNX_DATE \"$ProjectDate$\""$
9 #PRCS LYNX_DATE "Mon, 21 Jun 2010 02:44:55 -0700"
9 #PRCS LYNX_DATE "Wed, 25 Aug 2010 02:40:13 -0700"
1010 #
1111 # Definition pairs are of the form VARIABLE:DEFINITION
1212 # NO spaces are allowed between the pair items.
0 # $LynxId: makefile.inn,v 1.17 2010/06/19 10:57:02 tom Exp $
0 # $LynxId: makefile.inn,v 1.18 2010/08/08 14:07:45 tom Exp $
11 #
22 # Makefile for program source directory in GNU NLS utilities package.
33 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
122122 install-data: install-data-@USE_NLS@
123123 install-data-no: all
124124 install-data-yes: all
125 mkdir -p $(DATADIR); \
125 mkdir -p $(DATADIR)
126126 @catalogs='$(CATALOGS)'; \
127127 for cat in $$catalogs; do \
128128 cat=`basename $$cat`; \
00 /*
1 * $LynxId: GridText.c,v 1.188 2010/06/17 10:50:36 tom Exp $
1 * $LynxId: GridText.c,v 1.190 2010/06/29 00:56:31 tom Exp $
22 *
33 * Character grid hypertext object
44 * ===============================
17781778 }
17791779 #endif /* USE_COLOR_STYLE */
17801780 #ifdef WIDEC_CURSES
1781 i = limit - LYbarWidth - strlen(percent) - LYstrCells(title);
1781 i = limit - LYbarWidth - (int) strlen(percent) - LYstrCells(title);
17821782 if (i <= 0) { /* title is truncated */
1783 i = limit - LYbarWidth - strlen(percent) - 3;
1783 i = limit - LYbarWidth - (int) strlen(percent) - 3;
17841784 if (i <= 0) { /* no room at all */
17851785 title[0] = '\0';
17861786 } else {
60066006 * LYstrExtent filters out the formatting characters, so we do not
60076007 * have to count them here, except for soft newlines.
60086008 */
6009 anchor_ptr->line_pos = LYstrExtent2(line_ptr->data, anchor_col);
6009 anchor_ptr->line_pos = (short) LYstrExtent2(line_ptr->data, anchor_col);
60106010 if (line_ptr->data[0] == LY_SOFT_NEWLINE)
6011 anchor_ptr->line_pos += 1;
6011 anchor_ptr->line_pos = (short) (anchor_ptr->line_pos + 1);
60126012 }
60136013 #else /* 8-bit curses, etc. */
60146014 if (anchor_ptr->line_pos > 0) {
1063110631 assert(want != NULL);
1063210632 assert(text != NULL);
1063310633
10634 for (j = 0; j <= (last - have); ++j) {
10634 for (j = 0; (long) j <= (long) (last - have); ++j) {
1063510635 if (want[0] == text[j]
1063610636 && !memcmp(want, text + j, have)) {
1063710637 char temp[2];
14311431 * the version definition with the Project Version on checkout. Just
14321432 * ignore it. - kw */
14331433 /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */
1434 #define LYNX_VERSION "2.8.8dev.4"
1434 #define LYNX_VERSION "2.8.8dev.5"
14351435 #define LYNX_WWW_HOME "http://lynx.isc.org/"
14361436 #define LYNX_WWW_DIST "http://lynx.isc.org/current/"
14371437 /* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */
1438 #define LYNX_DATE "Mon, 21 Jun 2010 02:44:55 -0700"
1438 #define LYNX_DATE "Wed, 25 Aug 2010 02:40:13 -0700"
14391439 #define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */
14401440 #define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */
14411441