{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":704637552,"defaultBranch":"master","name":"hardinfo","ownerLogin":"bayrepo","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-10-13T17:42:45.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/15265581?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1697219087.459903","currentOid":""},"activityList":{"items":[{"before":"371781320147477aed5647968647935e13994e92","after":"8a0e91cbe2e6b8cbd87c60bb7125914ea526c140","ref":"refs/heads/master","pushedAt":"2024-03-26T16:13:52.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"bayrepo","name":"Alexey","path":"/bayrepo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15265581?s=80&v=4"},"commit":{"message":"Merge branch 'lpereira:master' into master","shortMessageHtmlLink":"Merge branch 'lpereira:master' into master"}},{"before":"5996cebeeffad869f3c1bc79dacb87e2ec4d390f","after":"371781320147477aed5647968647935e13994e92","ref":"refs/heads/master","pushedAt":"2023-10-13T18:45:16.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"bayrepo","name":"Alexey","path":"/bayrepo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15265581?s=80&v=4"},"commit":{"message":"Here is the environment cinfiguration: cpu - atom, sd card as bootable disk, loist of devices:\n/sys/block/zram0\n/sys/block/mmcblk0boot0\n/sys/block/mmcblk0boot1\n/sys/block/mmcblk2\n/sys/block/mmcblk0\n\nHardinfo got nex pathes for reading for the report:\n\n1) # cat /sys/block/mmcblk0/device/oemid\n0x0103\n2) # cat /sys/block/mmcblk2/device/oemid\n0x534d\n3) # cat /sys/block/mmcblk0boot0/device/oemid\ncat: /sys/block/mmcblk0boot0/device/oemid: No such file or directory\n4) # cat /sys/block/mmcblk0boot1/device/oemid\ncat: /sys/block/mmcblk0boot1/device/oemid: No such file or directory\n\nIn the code no checks if files from previous step for device was read and pointer not NULL:\n\ngchar *oemid_path = g_strdup_printf(\"/sys/block/%s/device/oemid\", e->d->block_dev);\ngchar *manfid_path = g_strdup_printf(\"/sys/block/%s/device/manfid\", e->d->block_dev);\ngchar *oemid = NULL, *manfid = NULL;\ng_file_get_contents(oemid_path, &oemid, NULL, NULL);\ng_file_get_contents(manfid_path, &manfid, NULL, NULL);\n\nunsigned int id = strtol(oemid, NULL, 16);\n...\nid = strtol(manfid, NULL, 16);\n\nBefore srttol need check for NULL","shortMessageHtmlLink":"Here is the environment cinfiguration: cpu - atom, sd card as bootabl…"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wMy0yNlQxNjoxMzo1Mi4wMDAwMDBazwAAAAQf1ZLk","endCursor":"Y3Vyc29yOnYyOpK7MjAyMy0xMC0xM1QxODo0NToxNi4wMDAwMDBazwAAAAOWptMY"}},"title":"Activity · bayrepo/hardinfo"}