bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] libutil/srtlimcpy.c


From: Shigio Yamaguchi
Subject: Re: [PATCH] libutil/srtlimcpy.c
Date: Fri, 14 Mar 2003 00:38:33 +0900

Good job.
Committed. Thank you.

>  * libutil/strlimcpy.c (strlimcpy): Corrected spelling of `destination'.
>       Changed error message so that source string might be displayed from the
 head.
> 
> ---------------------------------------
> >grep strlimcpy\( tst.c
>         strlimcpy(dest, "source", 3);
> 
> [current cvs version]
> >./tst 
> ./tst: buffer overflow. strlimcpy(dist, 'rce', 3).
> 
> [patched version]
> >./tst
> ./tst: buffer overflow. strlimcpy(dest, 'source', 3).
> ---------------------------------------
> 
> ----
> Hideki IWAMOTO  address@hidden
> 
> ----------------------3598088421169580
> Content-Type: application/octet-stream;
>       name="libutil-strlimcpy.patch"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
>       filename="libutil-strlimcpy.patch"
> 
> SW5kZXg6IGxpYnV0aWwvc3RybGltY3B5LmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09
> PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2
> c3Jvb3QvZ2xvYmFsL2dsb2JhbC9saWJ1dGlsL3N0cmxpbWNweS5jLHYKcmV0cmlldmluZyBy
> ZXZpc2lvbiAxLjgKZGlmZiAtdSAtcjEuOCBzdHJsaW1jcHkuYwotLS0gbGlidXRpbC9zdHJs
> aW1jcHkuYwk1IEp1bCAyMDAyIDA3OjE2OjQ3IC0wMDAwCTEuOAorKysgbGlidXRpbC9zdHJs
> aW1jcHkuYwkxMyBNYXIgMjAwMyAxNDo1ODozNiAtMDAwMApAQCAtMjcsMjQgKzI3LDI0IEBA
> CiAvKgogICogc3RybGltY3B5OiBjb3B5IHN0cmluZyB3aXRoIGxpbWl0LgogICoKLSAqCW8p
> CWRpc3QJZGlzdGluYXRpb24gc3RyaW5nCisgKglvKQlkZXN0CWRlc3RpbmF0aW9uIHN0cmlu
> ZwogICoJaSkJc291cmNlCXNvdXJjZSBzdHJpbmcKLSAqCWkpCWxpbWl0CXNpemUgb2YgZGlz
> dAorICoJaSkJbGltaXQJc2l6ZSBvZiBkZXN0CiAgKgogICogTk9URTogVGhpcyBmdW5jdGlv
> biBpcyBzaW1pbGFyIHRvIHN0cmxjcHkgb2YgT3BlbkJTRCBidXQgaXMgZGlmZmVyZW50CiAg
> KiBiZWNhdXNlIHN0cmxpbWNweSBhYm9ydCB3aGVuIGl0IGJleW9uZCB0aGUgbGltaXQuCiAg
> Ki8KIHZvaWQKLXN0cmxpbWNweShkaXN0LCBzb3VyY2UsIGxpbWl0KQotY2hhciAqZGlzdDsK
> LWNvbnN0IGNoYXIgKnNvdXJjZTsKK3N0cmxpbWNweShkZXN0LCBzb3VyY2UsIGxpbWl0KQor
> Y2hhciAqZGVzdDsKK2NvbnN0IGNoYXIgKmNvbnN0IHNvdXJjZTsKIGNvbnN0IGludCBsaW1p
> dDsKIHsKIAlpbnQgbiA9IChpbnQpbGltaXQ7Ci0JY2hhciAqZCA9IGRpc3Q7CisJY2hhciAq
> cyA9IHNvdXJjZTsKIAogCXdoaWxlIChuLS0pCi0JCWlmICghKCpkKysgPSAqc291cmNlKysp
> KQorCQlpZiAoISgqZGVzdCsrID0gKnMrKykpCiAJCQlyZXR1cm47Ci0JZGllKCJidWZmZXIg
> b3ZlcmZsb3cuIHN0cmxpbWNweShkaXN0LCAnJXMnLCAlZCkuIiwgc291cmNlLCBsaW1pdCk7
> CisJZGllKCJidWZmZXIgb3ZlcmZsb3cuIHN0cmxpbWNweShkZXN0LCAnJXMnLCAlZCkuIiwg
> c291cmNlLCBsaW1pdCk7CiB9Cg==
> 
> ----------------------3598088421169580
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> 
> _______________________________________________
> Bug-global mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-global
> 
> ----------------------3598088421169580--
> 
> 
> 
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]