Skip to content

Buffer underflow, fix ipv6 favourism and example update - #35

Open
brostosjoined wants to merge 8 commits into
PieMC-Dev:mainfrom
brostosjoined:patch-2
Open

Buffer underflow, fix ipv6 favourism and example update#35
brostosjoined wants to merge 8 commits into
PieMC-Dev:mainfrom
brostosjoined:patch-2

Conversation

@brostosjoined

Copy link
Copy Markdown

No description provided.

@brostosjoined

Copy link
Copy Markdown
Author

The script somehow favours ipv6 port even when the protocol is set to ipv4 so ports must be same

@brostosjoined brostosjoined changed the title Latest update fix Buffer underflow fix and example update Aug 18, 2026
@brostosjoined

Copy link
Copy Markdown
Author
20:17:18 [PieRakNet - INFO] - Server initialized.
20:17:18 [PieRakNet - INFO] - Server started on 0.0.0.0:19132! (IPv4)
Traceback (most recent call last):
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\EXAMPLE.py", line 43, in <module>
    server.main()
    ~~~~~~~~~~~^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\EXAMPLE.py", line 36, in main
    raise(e)
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\EXAMPLE.py", line 30, in main
    self.server.start()
    ~~~~~~~~~~~~~~~~~^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\server.py", line 132, in start
    self.handle_data(data, client)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\server.py", line 147, in handle_data
    connection.handle(data)
    ~~~~~~~~~~~~~~~~~^^^^^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\connection.py", line 49, in handle
    handler(data, self.server, self)
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\handlers\frame_set.py", line 10, in handle
    frame_set_packet.decode(data)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\packets\frame_set.py", line 23, in decode
    frame = self.decode_frame(buffer)
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\packets\frame_set.py", line 44, in decode_frame
    frame['reliable_frame_index'] = buffer.read_uint24le()
                                    ~~~~~~~~~~~~~~~~~~~~^^
  File "c:\Users\Brostos\Desktop\inventory\Games\PieRakNet-main\pieraknet\buffer.py", line 169, in read_uint24le
    return struct.unpack("<I", uint24le)[0]
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 4 bytes

@brostosjoined brostosjoined changed the title Buffer underflow fix and example update Buffer underflow, fix ipv6 favourism and example update Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant