Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-118959

NettyVarint21FrameEncoder exception message is incomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12, 20w07a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      The exception thrown by the method net.minecraft.network.Varint21LengthFieldPrepender.encode(ChannelHandlerContext, ByteBuf, ByteBuf) (20w07a Mojang name) when it tries to encode a buffer whose length cannot be stored using 3 bytes is created with an incomplete message.

      Example message
      unable to fit 2232077 into 3
      
      "unable to fit " + i + " into " + 3
      

      Suggested would for example be

      "Cannot write buffer length of " + i + " using " + 3 + " bytes"
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marcono1234 [Mod] Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: