Segun-Ogundipe / solana-mail-web

2 stars 2 forks source link

Trying to access beyond buffer length #3

Closed imkrish7 closed 2 years ago

imkrish7 commented 2 years ago

inboxActions.ts:42 RangeError: Trying to access beyond buffer length at checkOffset (bundle.js:53001:36) at Uint8Array.readUInt32LE (bundle.js:53057:18) at BinaryReader.readU32 (bundle.js:51434:28) at BinaryReader.propertyDescriptor.value (bundle.js:51400:29) at BinaryReader.readArray (bundle.js:51486:22) at BinaryReader.propertyDescriptor.value (bundle.js:51400:29) at deserializeField (bundle.js:51651:23) at deserializeStruct (bundle.js:51703:27) at deserialize (bundle.js:51730:18) at Function.decode

Segun-Ogundipe commented 2 years ago

This is possibly an issue where struct deserialization function is supplied with the wrong integer length

On Fri, 25 Feb 2022, 21:13 Rackham, @.***> wrote:

inboxActions.ts:42 RangeError: Trying to access beyond buffer length at checkOffset (bundle.js:53001:36) at Uint8Array.readUInt32LE (bundle.js:53057:18) at BinaryReader.readU32 (bundle.js:51434:28) at BinaryReader.propertyDescriptor.value (bundle.js:51400:29) at BinaryReader.readArray (bundle.js:51486:22) at BinaryReader.propertyDescriptor.value (bundle.js:51400:29) at deserializeField (bundle.js:51651:23) at deserializeStruct (bundle.js:51703:27) at deserialize (bundle.js:51730:18) at Function.decode

— Reply to this email directly, view it on GitHub https://github.com/Segun-Ogundipe/solana-mail-web/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4HEPY6DHG4WQCI35IUFNLU47PGDANCNFSM5PLF2WAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

imkrish7 commented 2 years ago

Where in contract

Segun-Ogundipe commented 2 years ago

It's a JavaScript error. Probably in one of the borsh models

On Fri, 25 Feb 2022, 21:45 Rackham, @.***> wrote:

Where in contract

— Reply to this email directly, view it on GitHub https://github.com/Segun-Ogundipe/solana-mail-web/issues/3#issuecomment-1051252571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4HEP5KZZTP2FTKKYAL2ELU47S73ANCNFSM5PLF2WAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

Segun-Ogundipe commented 2 years ago

Hi @imkrish7, were you able to fix this?

imkrish7 commented 2 years ago

yes. The issue was, Response of the account info was wrong. Thanks for the help.

Segun-Ogundipe commented 2 years ago

Glad to hear it!