From: "Jan Beulich" Subject: [PATCH] common/xz: add comments for the intentionally missing break statements Date: Wed, 04 Feb 2015 16:08:25 +0000 Message-ID: <54D25209020000780005CF12@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part4471CFE9.1__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ2V9-0001bP-67 for xen-devel@lists.xenproject.org; Wed, 04 Feb 2015 16:08:27 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Campbell , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part4471CFE9.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Lasse Collin [Linux commit 84d517f3e56f7d0d305c14a701cee8f7372ebe1e] Signed-off-by: Jan Beulich --- a/xen/common/xz/dec_lzma2.c +++ b/xen/common/xz/dec_lzma2.c @@ -1043,6 +1043,8 @@ XZ_EXTERN enum xz_ret INIT xz_dec_lzma2_ =20 s->lzma2.sequence =3D SEQ_LZMA_PREPARE; =20 + /* Fall through */ + case SEQ_LZMA_PREPARE: if (s->lzma2.compressed < RC_INIT_BYTES) return XZ_DATA_ERROR; @@ -1053,6 +1055,8 @@ XZ_EXTERN enum xz_ret INIT xz_dec_lzma2_ s->lzma2.compressed -=3D RC_INIT_BYTES; s->lzma2.sequence =3D SEQ_LZMA_RUN; =20 + /* Fall through */ + case SEQ_LZMA_RUN: /* * Set dictionary limit to indicate how much we = want --=__Part4471CFE9.1__= Content-Type: text/plain; name="xz-annotate-missing-breaks.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xz-annotate-missing-breaks.patch" common/xz: add comments for the intentionally missing break statements=0A= =0ASigned-off-by: Lasse Collin =0A[Linux commit = 84d517f3e56f7d0d305c14a701cee8f7372ebe1e]=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/common/xz/dec_lzma2.c=0A+++ b/xen/common= /xz/dec_lzma2.c=0A@@ -1043,6 +1043,8 @@ XZ_EXTERN enum xz_ret INIT = xz_dec_lzma2_=0A =0A s->lzma2.sequence =3D SEQ_LZMA_PREP= ARE;=0A =0A+ /* Fall through */=0A+=0A case = SEQ_LZMA_PREPARE:=0A if (s->lzma2.compressed < = RC_INIT_BYTES)=0A return XZ_DATA_ERROR;=0A@@ = -1053,6 +1055,8 @@ XZ_EXTERN enum xz_ret INIT xz_dec_lzma2_=0A = s->lzma2.compressed -=3D RC_INIT_BYTES;=0A s->lzma2.se= quence =3D SEQ_LZMA_RUN;=0A =0A+ /* Fall through */=0A+=0A = case SEQ_LZMA_RUN:=0A /*=0A * = Set dictionary limit to indicate how much we want=0A --=__Part4471CFE9.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part4471CFE9.1__=--