comparison src/util.c @ 9170:456ef1f4ba19

[gaim-migrate @ 9955] wing rights: Sorry, this is my fault, since I wrote the crashing code. I haven't done enough testing and/or inspection on the code, and this code is in 0.78. The crash occurs when gaim_markup_strip is called on a string which ends in <. When that happens, gaim_markup_strip happily tries to scan for a tag right *after* the terminating {nul} character. However, I didn't actually apply the patch until 0.79cvs, so the bug isn't in 0.78 like he originally thought, just cvs. Well not anymore. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Thu, 03 Jun 2004 02:57:25 +0000
parents c3fa2ad099a2
children 3e2ea5b69605
comparison
equal deleted inserted replaced
9169:3df7197abfe2 9170:456ef1f4ba19
1265 1265
1266 k = i + 1; 1266 k = i + 1;
1267 1267
1268 if(g_ascii_isspace(str2[k])) 1268 if(g_ascii_isspace(str2[k]))
1269 visible = TRUE; 1269 visible = TRUE;
1270 else 1270 else if (str2[k])
1271 { 1271 {
1272 /* Scan until we end the tag either implicitly (closed start 1272 /* Scan until we end the tag either implicitly (closed start
1273 * tag) or explicitly, using a sloppy method (i.e., < or > 1273 * tag) or explicitly, using a sloppy method (i.e., < or >
1274 * inside quoted attributes will screw us up) 1274 * inside quoted attributes will screw us up)
1275 */ 1275 */