comparison src/fns.c @ 101587:dfed39918c22

(concat): Check for string overflow (bug#1787).
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 27 Jan 2009 21:16:32 +0000
parents d0a16c6d0444
children 65cc22e2c624
comparison
equal deleted inserted replaced
101586:02b129d40b50 101587:dfed39918c22
601 SCHARS (this)); 601 SCHARS (this));
602 } 602 }
603 } 603 }
604 604
605 result_len += len; 605 result_len += len;
606 if (result_len < 0)
607 error ("String overflow");
606 } 608 }
607 609
608 if (! some_multibyte) 610 if (! some_multibyte)
609 result_len_byte = result_len; 611 result_len_byte = result_len;
610 612