kafka/checkstyle
Colin Patrick McCabe b401fdaefb MINOR: Add more validation during KRPC deserialization
When deserializing KRPC (which is used for RPCs sent to Kafka, Kafka Metadata records, and some
    other things), check that we have at least N bytes remaining before allocating an array of size N.

    Remove DataInputStreamReadable since it was hard to make this class aware of how many bytes were
    remaining. Instead, when reading an individual record in the Raft layer, simply create a
    ByteBufferAccessor with a ByteBuffer containing just the bytes we're interested in.

    Add SimpleArraysMessageTest and ByteBufferAccessorTest. Also add some additional tests in
    RequestResponseTest.

    Reviewers: Tom Bentley <tbentley@redhat.com>, Mickael Maison <mickael.maison@gmail.com>, Colin McCabe <colin@cmccabe.xyz>

    Co-authored-by: Colin McCabe <colin@cmccabe.xyz>
    Co-authored-by: Manikumar Reddy <manikumar.reddy@gmail.com>
    Co-authored-by: Mickael Maison <mickael.maison@gmail.com>
2022-09-21 20:58:23 +05:30
..
.scalafmt.conf MINOR: Update Scalafmt to latest version (#12475) 2022-09-12 10:05:15 -04:00
checkstyle.xml Add license header in suppressions.xml (#11753) 2022-02-17 14:35:36 +08:00
import-control-core.xml KAFKA-14124: improve quorum controller fault handling (#12447) 2022-08-04 22:49:45 -07:00
import-control-jmh-benchmarks.xml Add license header in suppressions.xml (#11753) 2022-02-17 14:35:36 +08:00
import-control.xml KAFKA-14177: Correctly support older kraft versions without FeatureLevelRecord (#12513) 2022-08-25 18:12:31 -07:00
java.header
suppressions.xml MINOR: Add more validation during KRPC deserialization 2022-09-21 20:58:23 +05:30