This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] zero-terminate result of target_read_alloc


>
>  This patch makes result of target_read_alloc zero-terminated.
>  The point is that often the object is not allowed to contain embedded
>  zeros,
>  and working with zero-terminated strings is much easier.
>
>  OK?

This is wrong.  Either the terminating nul is part of the object you're
reading or it is not.  GDB shouldn't at its own.

>
>  - Volodya
>
>  2006-07-18  Vladimir Prus  <vladimir@codesourcery.com>
>
>  	* target.c (target_read_alloc): Zero-terminate result.
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]