Author: rhs
Date: Mon May 27 15:53:37 2013
New Revision: 1486649

URL: http://svn.apache.org/r1486649
Log:
limit described type pretty printing to values for which we have metadata

Modified:
    qpid/proton/trunk/proton-c/src/codec/codec.c

Modified: qpid/proton/trunk/proton-c/src/codec/codec.c
URL: 
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/codec/codec.c?rev=1486649&r1=1486648&r2=1486649&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/codec/codec.c (original)
+++ qpid/proton/trunk/proton-c/src/codec/codec.c Mon May 27 15:53:37 2013
@@ -335,7 +335,7 @@ int pn_format_atoms_one(pn_bytes_t *byte
   switch (atom->type) {
   case PN_DESCRIPTOR:
     if ((err = pn_bytes_format(bytes, "@"))) return err;
-    if (atoms->start->type == PN_ULONG) {
+    if (atoms->start->type == PN_ULONG && atoms->start->u.as_ulong < 256) {
       f = &FIELDS[atoms->start->u.as_ulong];
     } else {
       f = NULL;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to