Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No device label character limit in trezorctl #1399

Closed
bosomt opened this issue Dec 27, 2020 · 4 comments
Closed

No device label character limit in trezorctl #1399

bosomt opened this issue Dec 27, 2020 · 4 comments
Assignees
Labels
bug Something isn't working as expected
Milestone

Comments

@bosomt
Copy link

bosomt commented Dec 27, 2020

Describe the bug
There is no character limit in trezorctl and device recovery in Electrum and you can set or try to set device label as long as you want.
omdel One end with Error: DataError: string overflow and model T long label is applied.
Some apps like Suite are not expecting it and it's breaking it's grafics

Firmware version and revision
Model T 2.3.5 commit 889a369
Model One 1.9.4 commit 889a369

Desktop/smartphone setup (please complete the following information):

  • Wallet software: trezorctl 0.12.2
  • OS: Nixos

To Reproduce
Steps to reproduce the behavior:

  1. Set model T device label via trezorctl
  2. Check device screen or go to https://suite.trezor.io/web/ and observe

Expected behavior
There is same character limit as in Suite and wallet.

Screenshots
IMG_20201227_122254
image (2)

image

Note(s):

Model One
trezorctl set label 12345678912345678912345678933333333333333333333333333333355555555555555555555555555555555555555555DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
WebUSB transport is disabled: libusb-1.0.so: cannot open shared object file: No such file or directory
Error: DataError: string overflow
(trezor-firmware)

Model T
[tbosansk@tbosansk:/home/tbosansk/Downloads/trezor-firmware]$ trezorctl set label 12345678912345678912345678933333333333333333333333333333355555555555555555555555555555555555555555DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
WebUSB transport is disabled: libusb-1.0.so: cannot open shared object file: No such file or directory
Please confirm action on your Trezor device.
Settings applied
(trezor-firmware)

@bosomt bosomt added the bug Something isn't working as expected label Dec 27, 2020
@prusnak
Copy link
Member

prusnak commented Dec 27, 2020

This should be checked in the firmware, not in trezorctl/python-trezor.

For reference: label in the legacy firmware is limited to 32 characters (33 bytes of zero-terminated string)

@matejcik
Copy link
Contributor

@bosomt please re-test on master?

@matejcik
Copy link
Contributor

reopening for Error: DataError: string overflow on T1
not sure if that is worth fixing, will discuss

@bosomt
Copy link
Author

bosomt commented Jan 29, 2021

QA OK

info
Nixos
FW 2.3.5 model T revision: 9 bytes b'ffa96205f',
trezorctl version 0.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

4 participants