2017-02-07 04:55:37 +00:00
|
|
|
"""
|
|
|
|
categories: Modules,struct
|
|
|
|
description: Struct pack with too few args, not checked by uPy
|
|
|
|
cause: Unknown
|
|
|
|
workaround: Unknown
|
|
|
|
"""
|
|
|
|
import struct
|
2020-03-23 02:26:08 +00:00
|
|
|
|
2017-02-07 04:55:37 +00:00
|
|
|
try:
|
2020-03-23 02:26:08 +00:00
|
|
|
print(struct.pack("bb", 1))
|
|
|
|
print("Should not get here")
|
2017-02-07 04:55:37 +00:00
|
|
|
except:
|
2020-03-23 02:26:08 +00:00
|
|
|
print("struct.error")
|