Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 124
    • Issues 124
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse Titan
  • titan.core
  • Issues
  • #575
Closed
Open
Issue created Nov 02, 2021 by Gábor Szalai@gszalaiMaintainer

RAW encoder: wrong value if FIELDORDER msb with PADDING

Summary

The RAW encoder produces wrong encoded value if the FIELDORDER is msb and padding is used.

Steps and/or TTCN-3 code to reproduce

module proba{

type component CT {};


type record my_rec{
  bitstring f1 length(6)
} with {
  variant "FIELDORDER(msb)"
  variant "PADDING(dword32)"
}

template my_rec t_expected:={f1:='111111'B}

testcase t_1() runs on CT{
  var bitstring vl_encoded
  var my_rec vl_pdu:={f1:='111111'B}
  var integer vl_res
  
  vl_encoded:=encvalue(vl_pdu)
  
  log(vl_encoded)

  
}

control{
  execute(t_1())
}
} with {encode "RAW"}

What is the current bug behavior?

'11000000000000000000000000000000'B

What is the expected correct behavior?

'11111100000000000000000000000000'B

Titan version

Up to 8.0.0

/cc @aknappqwt

Edited Nov 02, 2021 by Adam Knapp
Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent